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

enable proxyDNS only for supported proxies (SOCKS4/5) #2333

Merged
merged 2 commits into from Apr 25, 2022

Conversation

eladyn
Copy link
Contributor

@eladyn eladyn commented Apr 19, 2022

From https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/proxy/ProxyInfo:

proxyDNS
boolean. If true, the proxy server is used to resolve certain DNS queries (only usable with "socks4" and "socks"). Defaults to false.

This only enables proxyDNS, if the proxy type is a socks or socks4 proxy, because setting it on other types caused the whole proxy setting to be ignored.

Fixes #2278 (at least for me, confirmations appreciated)

Tesing instructions

  1. Start mitmproxy.
  2. Configure a container to use http://localhost:8080 as proxy.
  3. Go (in this container) to https://mitm.it
    • before: If you can see this, traffic is not passing through mitmproxy.
    • after: The certificate authority setup page of mitmproxy.

Copy link
Contributor

@nekno nekno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me with an HTTP proxy over the LAN, with or without my additional edit.

Co-authored-by: nekno <nekno@users.noreply.github.com>
@bakulf bakulf merged commit d4e9502 into mozilla:main Apr 25, 2022
@eladyn eladyn deleted the proxy_proxyDNS_fix branch April 25, 2022 18:15
@sysarcher
Copy link

Hi Folks... any idea when this will land on the firefox addons page?

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.

Advanced Proxy Settings PROBLEM!
4 participants