aboutsummaryrefslogtreecommitdiff
path: root/src/utils/http.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-04-25 17:50:41 +0100
committerGravatar jesopo2019-04-25 17:50:41 +0100
commitbdcb4b5db2e21d95843f4919539a118b504226b7 (patch)
tree89722a40996662a436e11dfe3d1d960638c3b02f /src/utils/http.py
parentSupport interfaces that don't have AF_INET and/or AF_INET6 (diff)
signature
Add missing ":"
Diffstat (limited to 'src/utils/http.py')
-rw-r--r--src/utils/http.py2
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