mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
python/cluster: bind on ::0 by default on IPv6
This commit is contained in:
1 parent
7908a1d2ea
commit
3aa720fe1f
1 file changed
+1
-1
@@ -43,7 +43,7 @@ class NodeCluster(object):
|
||||
@staticmethod
|
||||
def find_ip(iface):
|
||||
if not iface or iface == 'any':
|
||||
return ('0.0.0.0','')
|
||||
return ('0.0.0.0','::0')
|
||||
|
||||
if_ip4 = netifaces.ifaddresses(iface)[netifaces.AF_INET][0]['addr']
|
||||
if_ip6 = netifaces.ifaddresses(iface)[netifaces.AF_INET6][0]['addr']
|
||||
|
||||
Reference in new issue
Block a user