Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errkit: detect permanent network errors when behind http/socks proxy #462

Conversation

mionskowski-form3
Copy link
Contributor

If HTTP(S)/SOCKS proxies are used the errors returned by http.Client are different.

For HTTP proxy:

dialer := http.ProxyURL(uri)
http.DefaultTransport.(*http.Transport).Proxy = dialer
_, err= http.DefaultClient.Get("https://this.does.not.exist")
fmt.Println(err)
image

compared to no proxy:

image

If HTTP(S)/SOCKS proxies are used the errors returned by http.Client are different.
@tarunKoyalwar tarunKoyalwar merged commit 84547c4 into projectdiscovery:main Jul 11, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants