progress removing onionr.py

This commit is contained in:
Kevin Froman 2019-08-05 12:57:25 -05:00
parent 6bf8bb1db6
commit 2bc908deb6
4 changed files with 14 additions and 7 deletions

View file

@ -78,7 +78,7 @@ def announce_node(daemon):
daemon.announceCache[peer] = data['random']
if not announceFail:
logger.info('Announcing node to ' + url)
if basicrequests.do_post_request(url, data, port=daemon.shared_state.get(NetController)) == 'Success':
if basicrequests.do_post_request(url, data, port=daemon.shared_state.get(NetController).socksPort) == 'Success':
logger.info('Successfully introduced node to ' + peer, terminal=True)
retData = True
keydb.transportinfo.set_address_info(peer, 'introduced', 1)

View file

@ -52,7 +52,7 @@ def connect_new_peer_to_communicator(comm_inst, peer='', useBootstrap=False):
if len(peerList) == 0 or useBootstrap:
# Avoid duplicating bootstrap addresses in peerList
bootstrappeers.add_bootstrap_list_to_peer_list(comm_inst, peerList)
print(peerList)
for address in peerList:
if not config.get('tor.v3onions') and len(address) == 62:
continue