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

Crash due to ipyfy #1

Closed
nithou opened this issue Oct 24, 2022 · 1 comment
Closed

Crash due to ipyfy #1

nithou opened this issue Oct 24, 2022 · 1 comment

Comments

@nithou
Copy link

nithou commented Oct 24, 2022

Hello!

For one month now I encounter this error when trying to run the script : [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'api.ipify.org'.

Seems related to IPYFY, any idea how to bypass / fix it?

@ArnaudLevaufre
Copy link
Owner

ArnaudLevaufre commented Oct 24, 2022

Hello,
api.ipify.org works fine for me. You can update the provider url with the API endpoints provided by seeip.org by changing lines 32 and 33:

IPV4_PROVIDER_URL = "https://ip4.seeip.org/" 
IPV6_PROVIDER_URL = "https://ip6.seeip.org/"

Any other provider returning the IP as plain text should work fine. If you find a reliable provider that do not serve the response as plain text, you can update the function get_current_ip so it parses the response and returns a string representing the IP.

Unfortunately there are no option to customize the ip provider from the cli arguments. So you won't be able to use the packaged software for now.

I hope this helps.

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

No branches or pull requests

2 participants