Skip to content

Commit

Permalink
Add ServerName to tlsConfig for TLS-over-TCP
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmushanning authored and Sean-Der committed Feb 24, 2023
1 parent 0f8dbfa commit 1f4b50d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gather.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})

Expand Down

0 comments on commit 1f4b50d

Please sign in to comment.