From 1f4b50ded8c649a83ecc027c770dd47cc1bb177f Mon Sep 17 00:00:00 2001 From: Rasmus Hanning Date: Thu, 23 Feb 2023 22:12:21 +0100 Subject: [PATCH] Add ServerName to tlsConfig for TLS-over-TCP --- gather.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gather.go b/gather.go index bba3b4f..88a7b29 100644 --- a/gather.go +++ b/gather.go @@ -615,6 +615,7 @@ func (a *Agent) gatherCandidatesRelay(ctx context.Context, urls []*URL) { //noli } conn := tls.Client(tcpConn, &tls.Config{ + ServerName: url.Host, InsecureSkipVerify: a.insecureSkipVerify, //nolint:gosec })