We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 716cd09 + 0057404 commit 9960d58Copy full SHA for 9960d58
cli/packages/gateway/gateway.go
@@ -79,13 +79,9 @@ func (g *Gateway) ConnectWithRelay() error {
79
80
// Dial TURN Server
81
if relayPort == "5349" {
82
- caCertPool := x509.NewCertPool()
83
- caCertPool.AppendCertsFromPEM([]byte(g.config.CertificateChain))
84
-
85
log.Info().Msgf("Provided relay port %s. Using TLS", relayPort)
86
conn, err := dtls.Dial("udp", turnAddr, &dtls.Config{
87
ServerName: relayAddress,
88
- RootCAs: caCertPool,
89
})
90
if err != nil {
91
return fmt.Errorf("Failed to connect with relay server: %w", err)
0 commit comments