foxyproxy / browser-extension

Version 8 and above. Browser extension source code for Firefox, Chrome, and other Chromium-based browsers
GNU General Public License v2.0
198 stars 29 forks source link

8.x on firefox does not respect network.dns.disableIPv6 #102

Closed bugfood closed 6 months ago

bugfood commented 6 months ago

Since the upgrade to FoxyProxy 8, firefox connects to sites using IPv6 even when network.dns.disableIPv6 is true. Version 7.5.1 (and presumably other older versions) would use IPv4 or IPv6, depending on network.dns.disableIPv6.

Steps to reproduce:

  1. Use a dual-stack host running firefox and a dual-stack proxy (via socks5 and maybe other protocols).
  2. Install FoxyProxy 8 (currently 8.7).
  3. Import the proxy, e.g. as socks5://localhost:8801?title=test&proxyDns=false
  4. Enable the proxy.
  5. Configure firefox to have network.dns.disableIPv6 set to true.
  6. Navigate to an IP-checker website, e.g. https://ifconfig.co/

Observed results: The IP-checker website shows the client IP as an IPv6 IP.

Expected results: The IP-checker website shows the client IP as an IPv4 IP.

Thanks, Corey

erosman commented 6 months ago

There is nothing in the FoxyProxy code (v6-7 or v8) to select between IPv4 & IPv6. :thinking:

BTW, I noticed an oversight in "Import Proxy List" which sets the Proxy DNS to true. (fixed in v8.9) Try turning the Proxy DNS to off in the proxy UI and see if that makes a difference.

bugfood commented 6 months ago

Thanks for looking into this.

I think you are right about the proxyDNS. I had tried toggling that at some point, but maybe I forgot to click the "save". In any case, properly disabling proxyDNS does seem to resolve the problem.

bugfood commented 6 months ago

Thank you.