all: allow verbose log when connecting to ControlD API

So troubleshooting will be easier in case of errors happened.
This commit is contained in:
Cuong Manh Le
2025-02-15 02:55:03 +07:00
committed by Cuong Manh Le
parent 7444d8517a
commit 0631ffe831
4 changed files with 16 additions and 4 deletions

View File

@@ -529,7 +529,7 @@ func (uc *UpstreamConfig) newDOHTransport(addrs []string) *http.Transport {
for i := range addrs {
dialAddrs[i] = net.JoinHostPort(addrs[i], port)
}
conn, err := pd.DialContext(ctx, network, dialAddrs)
conn, err := pd.DialContext(ctx, network, dialAddrs, ProxyLogger.Load())
if err != nil {
return nil, err
}