proxyplease icon indicating copy to clipboard operation
proxyplease copied to clipboard

proxyplease does not appear to honor system bypass list

Open vbisbest opened this issue 4 years ago • 1 comments
trafficstars

Testing on OSX. Sample:

	a, _ := url.Parse("http://localhost/")
	b, _ := url.Parse("https://www.google.com")

	dialContext2 := proxyplease.NewDialContext(proxyplease.Proxy{TargetURL: a})
	dialContext3 := proxyplease.NewDialContext(proxyplease.Proxy{TargetURL: b})

Output

2021/05/05 11:57:39 proxyplease.proxy> No proxy provided. Attempting to infer from system.
2021/05/05 11:57:39 proxyplease.proxy> Inferred proxy from system: http://127.0.0.1:8080
2021/05/05 11:57:40 proxyplease.proxy> No proxy provided. Attempting to infer from system.
2021/05/05 11:57:40 proxyplease.proxy> Inferred proxy from system: http://127.0.0.1:8080

Proxy settings: Screen Shot 2021-05-05 at 11 59 44 AM

Expected: the dialContext for localhost should have been "direct"

vbisbest avatar May 05 '21 16:05 vbisbest

It appears this was added to go-get-proxy in 2018: https://github.com/rapid7/go-get-proxied/pull/4

vbisbest avatar May 05 '21 16:05 vbisbest