s
This commit is contained in:
@@ -19,7 +19,7 @@ def _local_ips() -> list[str]:
|
||||
hostname = socket.gethostname()
|
||||
for info in socket.getaddrinfo(hostname, None, family=socket.AF_INET):
|
||||
ip = info[4][0]
|
||||
if ip and ip != "127.0.0.1" and ip not in out:
|
||||
if ip and not ip.startswith("127.") and ip not in out:
|
||||
out.append(ip)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user