Made detection of the propper ipv6 addresses more generic.

This commit is contained in:
Simon Wüllhorst 2016-05-29 20:12:47 +02:00
parent ff7105eedc
commit db0800c5c7

View file

@ -42,8 +42,7 @@ class NodeInit(object):
addresses = []
if 'addresses' in self.__jsonObject__['nodeinfo']['network']:
for address in self.__jsonObject__['nodeinfo']['network']['addresses']:
#TODO: make more generic
if address.startswith('2a03'):
if not address.startswith('fe80'):
addresses.append(address)
return addresses