Skip to content

Commit

Permalink
chore: removing log trace and add field to operation so we can see th…
Browse files Browse the repository at this point in the history
…e received verifyHost
  • Loading branch information
WendelHime committed Aug 22, 2024
1 parent 1bee232 commit 30549ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion direct.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ func (d *direct) dialServerWith(m *Masquerade) (net.Conn, error) {
tlsConfig.ServerName = m.SNI
tlsConfig.InsecureSkipVerify = true
tlsConfig.VerifyPeerCertificate = func(rawCerts [][]byte, _ [][]*x509.Certificate) error {
log.Tracef("verifying peer certificate for masquerade domain [%s] and SNI [%s]", m.Domain, m.SNI)
var verifyHostname string
if m.VerifyHostname != nil {
verifyHostname = *m.VerifyHostname
op.Set("verify_hostname", verifyHostname)
}
return verifyPeerCertificate(rawCerts, d.certPool, verifyHostname)
}
Expand Down

0 comments on commit 30549ad

Please sign in to comment.