Add ServerName to tlsConfig for TLS-over-TCP

This commit is contained in:
Rasmus Hanning
2023-02-24 13:51:16 -05:00
committed by Sean DuBois
parent 0f8dbfa207
commit 1f4b50ded8
+1
View File
@@ -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
})