proxy-switcher icon indicating copy to clipboard operation
proxy-switcher copied to clipboard

Wildcards/Netmasks for the proxy exceptions

Open xambroz opened this issue 7 years ago • 2 comments

Proxy Switcher (Firefox 57+) accepts a list of sites to use for "Direct:" connection. Unfortunately it currently doesn't support any wildcards or the support is not working. It would be nice to honor the same substring matching and network masks as it is usual for the core firefox.

Example from the Firefox (57) proxy configuration: .mozilla.org, .net.nz, 192.168.1.0/24

Righ now (version 0.1.8) this is not working:

  1. when you put to direct field .example.com (or even .sub.example.com) it won't use the direct connection for host1.sub.example.com

  2. when you put there as exception a range 127.0.0.0/24, connecting to 127.0.0.3:8080 will still go through proxy

xambroz avatar Nov 21 '17 21:11 xambroz

Firefox does not support shExpMatch at the moment! Hence I am using

https://gist.githubusercontent.com/ayanamist/2989518/raw/f51d898768824466bfc8762a57ff3729ce80e8a6/shExpMatch.js

rNeomy avatar Nov 25 '17 12:11 rNeomy

when you put there as exception a range 127.0.0.0/24, connecting to 127.0.0.3:8080 will still go through proxy

Use 127.0.0.* instead until the PAC script supports shExpMatch

rNeomy avatar Nov 25 '17 12:11 rNeomy