diff options
Diffstat (limited to 'src/utils/http.py')
| -rw-r--r-- | src/utils/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/http.py b/src/utils/http.py index 2e71792d..55e0c96b 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -112,7 +112,7 @@ def is_localhost(hostname: str) -> bool: links = netifaces.ifaddresses(interface) for link in links.get(netifaces.AF_INET, [] - )+links.get(netifaces.AF_INET6, []) + )+links.get(netifaces.AF_INET6, []): address = ipaddress.ip_address(link["addr"].split("%", 1)[0]) if address in ips: return True |
