If you see ghcr.io read: connection reset by peer ipv6 when pulling from GitHub Container Registry, your system might be failing on IPv6.
The fix is to force IPv4 by editing your local hosts file.
- Locate your
hostsfile:
| import hmac | |
| def checkValidateInitData(hash_str, init_data, token, c_str="WebAppData"): | |
| """ | |
| Validates the data received from the Telegram web app, using the | |
| method documented here: | |
| https://core.telegram.org/bots/webapps#validating-data-received-via-the-web-app | |
| hash_str - the has string passed by the webapp | |
| init_data - the query string passed by the webapp |
| import requests | |
| import json | |
| servers=json.loads(requests.get('https://single-developers.herokuapp.com/servers').content) | |
| for server in servers: | |
| id=str(server) | |
| ip=servers[str(server)]['ip'] | |
| location=servers[str(server)]['location'] | |
| emoji=servers[str(server)]['emoji'] | |
| print( |