Skip to content

Commit

Permalink
doh: let net/http auto-add correct SNI
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous committed Feb 5, 2024
1 parent 1612a46 commit f6c441f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions intra/doh/doh.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ func newTransport(typ, id, rawurl, target string, addrs []string, px ipn.Proxies
signer := newClientAuthWrapper(auth)
t.tlsconfig = &tls.Config{
GetClientCertificate: signer.GetClientCertificate,
ServerName: t.hostname,
// ServerName: t.hostname,
}
} else {
t.tlsconfig = &tls.Config{
InsecureSkipVerify: skipTLSVerify,
ServerName: t.hostname,
// ServerName: t.hostname,
}
}
// Override the dial function.
Expand Down Expand Up @@ -390,7 +390,7 @@ func (t *transport) send(pid string, req *http.Request) (ans []byte, blocklists
}
req = req.WithContext(httptrace.WithClientTrace(req.Context(), &trace))

log.V("doh: sending query")
log.V("doh: sending query to: %s", t.hostname)

httpResponse, err := t.fetch(pid, req)

Expand Down

0 comments on commit f6c441f

Please sign in to comment.