Removed support for v2 onions

This commit is contained in:
Kevin Froman 2020-03-26 03:48:57 -05:00
parent 922f2be235
commit 62b4f5eb0e
3 changed files with 2 additions and 8 deletions

View file

@ -32,8 +32,6 @@ def mergeAdders(newAdderList):
for adder in newAdderList.split(','):
adder = adder.strip()
if not adder in keydb.listkeys.list_adders(randomOrder = False) and not adder in gettransports.get() and not blacklist.inBlacklist(adder):
if not config.get('tor.v3onions', True) and len(adder) == 62:
continue
if keydb.addkeys.add_address(adder):
# Check if we have the maximum amount of allowed stored peers
if config.get('peers.max_stored_peers') > len(keydb.listkeys.list_adders()):