Skip to content

Commit 712b5d0

Browse files
committed
ipn/proxies: use preferred over default
1 parent 1c419bc commit 712b5d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

intra/ipn/pxclient.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,8 @@ func httpClient(p Proxy, network string, u *url.URL) *http.Client {
620620
}
621621
}
622622

623-
dnsid := x.Default
623+
// use preferred when proxy does not have dns
624+
dnsid := x.Preferred
624625
if hasDNS := len(p.DNS()) > 0; hasDNS {
625626
dnsid = p.ID()
626627
}

0 commit comments

Comments
 (0)