From 0057404562695da90e8e9d3eaa2cf96ce44e8b50 Mon Sep 17 00:00:00 2001 From: = Date: Mon, 10 Mar 2025 22:22:58 +0530 Subject: [PATCH] feat: removed ca pool from dialing --- cli/packages/gateway/gateway.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cli/packages/gateway/gateway.go b/cli/packages/gateway/gateway.go index bcf977d6d4..772da8c400 100644 --- a/cli/packages/gateway/gateway.go +++ b/cli/packages/gateway/gateway.go @@ -79,13 +79,9 @@ func (g *Gateway) ConnectWithRelay() error { // Dial TURN Server if relayPort == "5349" { - caCertPool := x509.NewCertPool() - caCertPool.AppendCertsFromPEM([]byte(g.config.CertificateChain)) - log.Info().Msgf("Provided relay port %s. Using TLS", relayPort) conn, err := dtls.Dial("udp", turnAddr, &dtls.Config{ ServerName: relayAddress, - RootCAs: caCertPool, }) if err != nil { return fmt.Errorf("Failed to connect with relay server: %w", err)