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

Doesn't accept https://antizapret.prostovpn.org/proxy.pac as valid script #68

Closed
ZzZombo opened this issue Mar 24, 2023 · 3 comments · Fixed by #69
Closed

Doesn't accept https://antizapret.prostovpn.org/proxy.pac as valid script #68

ZzZombo opened this issue Mar 24, 2023 · 3 comments · Fixed by #69

Comments

@ZzZombo
Copy link

ZzZombo commented Mar 24, 2023

It raises _dukpy.JSRuntimeError: EvalError: Error while calling Python Function: TypeError('inet_aton() argument 1 must be str, not bool') when testing self.find_proxy_for_url("/", "0.0.0.0"). Removing the check locally allows the file to be correctly consumed by my code. Note that my other issue needs to be resolved before you could use the URL as is, or manually follow the redirect and use the end URL when working with the PAC file.

@carsonyl
Copy link
Owner

Please attach a repro. I cannot access the given PAC URL. It returns HTTP 403:

Your geoip is not RU, contact antizapret@prostovpn.org if you believe this is an error. Send your IP address in the message!!

@ZzZombo
Copy link
Author

ZzZombo commented Mar 24, 2023

https://gist.github.com/ZzZombo/f48c43fa1c1c5ef834dfd83b257140b9 is the current content of the script.

@ZzZombo
Copy link
Author

ZzZombo commented Mar 29, 2023

Thanks!

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 a pull request may close this issue.

2 participants