python/cluster: bind on ::0 by default on IPv6

This commit is contained in:
Adrien Beraud committed 2017-05-23 17:59:05 +02:00
1 parent 7908a1d2ea
commit 3aa720fe1f
1 file changed
+1 -1
+1 -1
View File
@@ -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']