feat: add EchoIP service for external IP retrieval and update related configurations
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 13s
Nix Format Check / check-format (push) Successful in 54s
Python Lint Check / check-python (push) Failing after 11s

This commit is contained in:
2025-03-26 15:07:26 +01:00
parent 61cd474450
commit 11423be2bb
5 changed files with 42 additions and 1 deletions

View File

@ -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"