forked from kenzuya/unshackle
feat(ip-info): consolidate IP lookup, add ipinfo.io token support
Replace get_ip_info + get_cached_ip_info pair with a single unshackle.core.utils.ip_info module providing a normalized return shape across providers. Adds optional ipinfo_api_key config for the ipinfo.io Lite endpoint (higher rate limits, ASN/org/continent data), swaps the ipapi.co fallback for ip-api.in, and migrates all callers (service, gluetun, remote_service, api/handlers, DSNP, YT) to the new import path. Auth token is sent per-request and never attached to the shared session headers.
This commit is contained in:
@@ -13,7 +13,8 @@ import requests
|
||||
|
||||
from unshackle.core import binaries
|
||||
from unshackle.core.proxies.proxy import Proxy
|
||||
from unshackle.core.utilities import get_country_code, get_country_name, get_debug_logger, get_ip_info
|
||||
from unshackle.core.utilities import get_country_code, get_country_name, get_debug_logger
|
||||
from unshackle.core.utils.ip_info import get_ip_info
|
||||
|
||||
# Global registry for cleanup on exit
|
||||
_gluetun_instances: list["Gluetun"] = []
|
||||
|
||||
Reference in New Issue
Block a user