-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
[Feature request] Add PAC file support #30
Comments
This is exactly what I'm looking at for the last few hours. The pypac package will make this super easy along with urllib to get manually defined proxies in Internet Options. #2 already discussed this at length but that's more about noproxy so will keep this issue open to track PAC and WPAD support separately. |
This feature has been implemented in the latest release. Please try it out and let me know how it works for you. |
Doesn't work for me...
-output log
If i use in config "server = prox1.intra:8080,etc" it works fine. |
Thanks @jpjoux, just pulled his PR32 to fix this PAC port issue which was treating the proxy port as a string instead of an int and failing to connect. Please try the latest vHEAD release to see if it now works for you. |
Still having issues, I get an "ERR_PROXY_AUTH_UNSUPPORTED", in Chrome, IE displays a 407 code. This is the log output (with some private stuff removed):
|
Looks like you are also running into issue #29. It's getting the PAC proxy info correctly. |
PAC support is now functional but Px has gone from a 6MB binary to 14MB which isn't too bad, but where it used 10MB of RAM per process, it now uses 140MB of RAM per process. This is because pypac uses js2py to convert the PAC file, which is Javascript, into Python code. js2py takes up 120MB of RAM by itself. I'm not especially thrilled by this and am looking into alternatives. I've also requested the pypac module owner for his opinion on the matter. I'm curious what the Px community's opinion is on the matter as well and whether time should be spent optimizing this or prioritizing some other feature. |
It's not an absolute requirement, it just saves me from having to statically specify a bunch of noproxy options. I'd be happy to revert version in order to keep the footprint low, and have you focus on other features. |
I definitely benefit myself from PAC support - when I'm not on my VPN, I can go direct. Without PAC support, I had to have two ini files and stop/start Px. Now, with PAC support, it is zero effort. I just found a very simple PAC implementation - just leverage Window's built-in infrastructure. I'll work on moving over over the next few weeks. This is a no-brainer since the code is ready made. |
I just replaced the pypac dependency with WinHttp and we are back to a 6MB binary and 10MB RAM size. Hope it still works for everyone as expected. |
@genotrance I have tested the head version. it works fine for me. It slow but i do not know if it python or not |
How do we use this on the windows binary? |
The same question:
|
Maybe also the possibility to add proxy autodiscovery (WPAD), which returns a PAC file.
The text was updated successfully, but these errors were encountered: