From 30549ad85deb235769eb2305a5d9b7830b7b7bcd Mon Sep 17 00:00:00 2001 From: WendelHime <6754291+WendelHime@users.noreply.github.com> Date: Thu, 22 Aug 2024 19:02:01 -0300 Subject: [PATCH] chore: removing log trace and add field to operation so we can see the received verifyHost --- direct.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct.go b/direct.go index 3b6eca3..b4e0f6e 100644 --- a/direct.go +++ b/direct.go @@ -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) }