Add missing ":"
This commit is contained in:
parent
1240b154cb
commit
bdcb4b5db2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue