This commit is contained in:
root
2026-05-17 14:06:06 +00:00
parent a3e8a4a96c
commit a91188ca68
29 changed files with 442 additions and 58 deletions

View File

@@ -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