mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-21 06:01:42 +00:00
net/tshttpproxy: discard secondary Windows proxies for now
This commit is contained in:
parent
44598e3e89
commit
9be1917c5b
@ -51,6 +51,10 @@ func proxyFromWinHTTP(req *http.Request) (*url.URL, error) {
|
|||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
if v != "" {
|
if v != "" {
|
||||||
|
// Discard all but first proxy value for now.
|
||||||
|
if i := strings.Index(v, ";"); i != -1 {
|
||||||
|
v = v[:i]
|
||||||
|
}
|
||||||
if !strings.HasPrefix(v, "https://") {
|
if !strings.HasPrefix(v, "https://") {
|
||||||
v = "http://" + v
|
v = "http://" + v
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user