-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Windows Automatic Pac Lookup fails on Windows 7 due to invalid flags #6
Comments
Ah, could you please try with modifing |
@oliverpool could you please handle this issue? |
Maybe we could simply remove those flags (I can't remember any reason to bypass the cache...) |
which one, could you please send me PR ? I don't have environment for proxy using pac. |
Hi,
That is how I got it working on my computer yesterday. |
I updated to my go.mod file and go.sum files to the latest version and it still works. Cudos for the fast fix. |
In pac_windows.go:70 we find the following line:
The following two flags are causing windows to return a ERROR_INVALID_PARAMETER when I execute the proxy lookup:
fWINHTTP_AUTOPROXY_NO_CACHE_CLIENT
fWINHTTP_AUTOPROXY_NO_CACHE_SVC
Removing these flags allows me to resolve the proxy successfully. I am running this on Windows 7.
The text was updated successfully, but these errors were encountered: