From bdcb4b5db2e21d95843f4919539a118b504226b7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 25 Apr 2019 17:50:41 +0100 Subject: Add missing ":" --- src/utils/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/http.py') 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 -- cgit v1.3.1-10-gc9f91