Add missing ":"

This commit is contained in:
jesopo 2019-04-25 17:50:41 +01:00
parent 1240b154cb
commit bdcb4b5db2

View file

@ -112,7 +112,7 @@ def is_localhost(hostname: str) -> bool:
links = netifaces.ifaddresses(interface) links = netifaces.ifaddresses(interface)
for link in links.get(netifaces.AF_INET, [] 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]) address = ipaddress.ip_address(link["addr"].split("%", 1)[0])
if address in ips: if address in ips:
return True return True