5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-09 16:00:27 +00:00

add rumors from dht

This commit is contained in:
Arceliar 2021-05-23 12:44:57 -05:00
parent 35b2d87911
commit ee6b45de16

View File

@ -58,6 +58,11 @@ def handleResponse(publicKey, data):
if 'response' in dhtInfo: if 'response' in dhtInfo:
for _,v in dhtInfo['response'].iteritems(): for _,v in dhtInfo['response'].iteritems():
if 'keys' in v: 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'] out['dht'] = v['keys']
nodeInfo = doRequest('{{"keepalive":true, "request":"getNodeInfo", "key":"{}"}}'.format(publicKey)) nodeInfo = doRequest('{{"keepalive":true, "request":"getNodeInfo", "key":"{}"}}'.format(publicKey))
if 'response' in nodeInfo: if 'response' in nodeInfo: