diff options
| author | 2019-04-25 17:50:41 +0100 | |
|---|---|---|
| committer | 2019-04-25 17:50:41 +0100 | |
| commit | bdcb4b5db2e21d95843f4919539a118b504226b7 (patch) | |
| tree | 89722a40996662a436e11dfe3d1d960638c3b02f /src/utils | |
| parent | Support interfaces that don't have AF_INET and/or AF_INET6 (diff) | |
| signature | ||
Add missing ":"
Diffstat (limited to 'src/utils')
| -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 |
