Commit c03df13

Repositorybojemoi-telegram
Branchmaster
AuthorBetty
Hashc03df130d577b4723e238a5f1c50785ee6aac1d0

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

Files Changed

MMtteelleeggrraamm--bboott//cdoantfaibga.spey/crud.py

Diff Summary

tt2eellfeeigglrreaasmm--cbbhooattn//gcdeoadnt,faib2ga1.speiy/ncsreurdt.ipoyns2)27,8deletions(-)