Skip to content

Commit efd8263

Browse files
author
flesueur
committed
localip ok pour ipv6
1 parent 5d306c6 commit efd8263

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/daemon.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
Session = None
1212

1313
def isLocalIP(ip):
14-
return (ip.startswith("192.168.") or ip.startswith("172.16.") or ip.startswith("10.") or ip.startswith("127."))
14+
return (ip.startswith("192.168.") or ip.startswith("172.16.") or ip.startswith("10.") or ip.startswith("127.")
15+
or ip.startswith("::1") or ip.startswith("fe80:"))
1516

1617
def updateIPInfo():
1718
#print("Updating IP Info")

0 commit comments

Comments
 (0)