fixed stun call
This commit is contained in:
parent
10925520c4
commit
e2b748a108
@ -197,12 +197,13 @@ class Server(object):
|
||||
C{list} will be empty.
|
||||
"""
|
||||
def handle(results):
|
||||
ips = [ result[0] for result in results if result is not None ]
|
||||
ips = [ result[1][0] for result in results if result[0] ]
|
||||
self.log.debug("other nodes think our ip is %s" % str(ips))
|
||||
return ips
|
||||
|
||||
ds = []
|
||||
for neighbor in self.bootstrappableNeighbors():
|
||||
ds.append(self.protocol.router.stun(neighbor))
|
||||
ds.append(self.protocol.stun(neighbor))
|
||||
return defer.gatherResults(ds).addCallback(handle)
|
||||
|
||||
def get(self, key):
|
||||
|
Loading…
Reference in New Issue
Block a user