feat: add EchoIP service for external IP retrieval and update related configurations
This commit is contained in:
@ -117,7 +117,7 @@ def get_external_ips():
|
||||
tuple: A tuple containing the IPv4 and IPv6 addresses as strings. If either
|
||||
address cannot be fetched, it will be set to "Unavailable".
|
||||
"""
|
||||
services = ["https://ifconfig.co", "https://ifconfig.io", "https://ifconfig.me"]
|
||||
services = ["https://ifconfig.co", "https://api.ipify.org", "https://myexternalip.com/raw", "https://ifconfig.io", "https://ifconfig.me"]
|
||||
headers = {"User-Agent": "curl"}
|
||||
ipv4, ipv6 = "Unavailable", "Unavailable"
|
||||
|
||||
|
Reference in New Issue
Block a user