diff --git a/basicswap/util/network.py b/basicswap/util/network.py index 225ffd8..b2fc4bf 100644 --- a/basicswap/util/network.py +++ b/basicswap/util/network.py @@ -15,9 +15,10 @@ from urllib.request import Request, urlopen def is_private_ip_address(addr: str): - # Will return false for all URLs if addr == 'localhost': return True + if addr.endswith('.local'): + return True try: return ipaddress.ip_address(addr).is_private except Exception: