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

Switch to or allow HTTPS for checking the internet is on. #4980

Closed
1 task done
fifieldt opened this issue Sep 20, 2024 · 2 comments
Closed
1 task done

Switch to or allow HTTPS for checking the internet is on. #4980

fifieldt opened this issue Sep 20, 2024 · 2 comments
Milestone

Comments

@fifieldt
Copy link

  • PlatformIO Core.

In platformio/platformio-core/http.py _internet_on method, HTTP port 80 is used to check if the internet is on:

s = socket.create_connection((host, 80))

I'm working with PlatformIO on networks where unencrypted traffic is heavily restricted. Even outbound traffic like web requests. So, HTTPS is very much preferred to HTTP.

Would it be possible to switch to using HTTPS hosts to check the internet is working? Or add one HTTPS host to the rotation?

@ivankravets ivankravets added this to the 6.1.16 milestone Sep 20, 2024
@ivankravets ivankravets modified the milestones: 6.1.16, 7.0 Sep 23, 2024
@ivankravets
Copy link
Member

Thanks for the report. Please re-test with pio upgrade --dev. Does it work now?

@fifieldt
Copy link
Author

Thank you very much @ivankravets !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants