Made detection of the propper ipv6 addresses more generic.
This commit is contained in:
parent
ff7105eedc
commit
db0800c5c7
|
@ -42,8 +42,7 @@ class NodeInit(object):
|
||||||
addresses = []
|
addresses = []
|
||||||
if 'addresses' in self.__jsonObject__['nodeinfo']['network']:
|
if 'addresses' in self.__jsonObject__['nodeinfo']['network']:
|
||||||
for address in self.__jsonObject__['nodeinfo']['network']['addresses']:
|
for address in self.__jsonObject__['nodeinfo']['network']['addresses']:
|
||||||
#TODO: make more generic
|
if not address.startswith('fe80'):
|
||||||
if address.startswith('2a03'):
|
|
||||||
addresses.append(address)
|
addresses.append(address)
|
||||||
return addresses
|
return addresses
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue