mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-24 12:11:35 +00:00
add rumors from dht
This commit is contained in:
parent
35b2d87911
commit
ee6b45de16
@ -58,6 +58,11 @@ def handleResponse(publicKey, data):
|
||||
if 'response' in dhtInfo:
|
||||
for _,v in dhtInfo['response'].iteritems():
|
||||
if 'keys' in v:
|
||||
dht = v['keys']
|
||||
for key in dht:
|
||||
if key in visited: continue
|
||||
if key in timedout: continue
|
||||
rumored.add(key)
|
||||
out['dht'] = v['keys']
|
||||
nodeInfo = doRequest('{{"keepalive":true, "request":"getNodeInfo", "key":"{}"}}'.format(publicKey))
|
||||
if 'response' in nodeInfo:
|
||||
|
Loading…
Reference in New Issue
Block a user