Commit c03df13
| Repository | bojemoi-telegram |
| Branch | master |
| Author | Betty |
| Hash | c03df130d577b4723e238a5f1c50785ee6aac1d0 |
Description
config.py: extend default ALLOWED_IP_RANGES to include ::/0 so IPv6 addresses pass the is_ip_allowed() check out of the box
crud.py: get_country_by_ip() now tries ip2location_db1 first (IPv4), then falls back to ip-api.com/json/{ip} for IPv6 (and IPv4 if ip2location fails); no API key required
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com