Fix TURN credentials renewal (#394)

Update conn config with new TURN credentials

Updated Signal connection timeout to 5s
This commit is contained in:
Misha Bragin
2022-07-21 21:07:38 +01:00
committed by GitHub
parent a3c5fa1307
commit 275d364df6
3 changed files with 15 additions and 3 deletions

View File

@ -58,7 +58,7 @@ func NewClient(ctx context.Context, addr string, key wgtypes.Key, tlsEnabled boo
transportOption = grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{}))
}
sigCtx, cancel := context.WithTimeout(ctx, time.Second*3)
sigCtx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()
conn, err := grpc.DialContext(
sigCtx,