From f980c26aa7715e73a9e3d2c13a9eb92aefe94617 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sun, 22 Sep 2019 15:48:56 -0500 Subject: [PATCH] now use bootstrap use configuration setting --- onionr/communicatorutils/connectnewpeers.py | 3 ++- onionr/static-data/default_config.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/onionr/communicatorutils/connectnewpeers.py b/onionr/communicatorutils/connectnewpeers.py index 1de5140f..8ce633f5 100755 --- a/onionr/communicatorutils/connectnewpeers.py +++ b/onionr/communicatorutils/connectnewpeers.py @@ -51,7 +51,8 @@ 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) + if config.get('general.use_bootstrap_list', True): + bootstrappeers.add_bootstrap_list_to_peer_list(comm_inst, peerList) for address in peerList: if not config.get('tor.v3onions') and len(address) == 62: diff --git a/onionr/static-data/default_config.json b/onionr/static-data/default_config.json index 435f35c9..fb1ea790 100755 --- a/onionr/static-data/default_config.json +++ b/onionr/static-data/default_config.json @@ -13,7 +13,7 @@ "max_block_age": 2678400, "public_key": "", "random_bind_ip": false, - "use_bootstrap_list": false + "use_bootstrap_list": true }, "www": {