Skip to content

Commit 9960d58

Browse files
authored
Merge pull request #3213 from akhilmhdh/fix/gateway-cert-error
feat: removed ca pool from dialing
2 parents 716cd09 + 0057404 commit 9960d58

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cli/packages/gateway/gateway.go

-4
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,9 @@ func (g *Gateway) ConnectWithRelay() error {
7979

8080
// Dial TURN Server
8181
if relayPort == "5349" {
82-
caCertPool := x509.NewCertPool()
83-
caCertPool.AppendCertsFromPEM([]byte(g.config.CertificateChain))
84-
8582
log.Info().Msgf("Provided relay port %s. Using TLS", relayPort)
8683
conn, err := dtls.Dial("udp", turnAddr, &dtls.Config{
8784
ServerName: relayAddress,
88-
RootCAs: caCertPool,
8985
})
9086
if err != nil {
9187
return fmt.Errorf("Failed to connect with relay server: %w", err)

0 commit comments

Comments
 (0)