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

@@ -226,7 +226,7 @@ func apiTransport(cdDev bool) *http.Transport {
addrs[i] = net.JoinHostPort(ips[i], port)
}
d := &ctrldnet.ParallelDialer{}
return d.DialContext(ctx, network, addrs)
return d.DialContext(ctx, network, addrs, ctrld.ProxyLogger.Load())
}
if router.Name() == ddwrt.Name || runtime.GOOS == "android" {
transport.TLSClientConfig = &tls.Config{RootCAs: certs.CACertPool()}