mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-29 17:28:53 +00:00
Set tcp = tor only if txtorcon is imported
for i2p this means tcp = none as long as txtorcon is not imported
This commit is contained in:
parent
f42d85b453
commit
3c22a3ce50
@ -214,7 +214,10 @@ def write_node_config(c, config):
|
||||
|
||||
if config["hide-ip"]:
|
||||
c.write("[connections]\n")
|
||||
c.write("tcp = tor\n")
|
||||
if tor_provider._import_txtorcon():
|
||||
c.write("tcp = tor\n")
|
||||
else:
|
||||
c.write("tcp = none\n")
|
||||
c.write("\n")
|
||||
|
||||
c.write("[node]\n")
|
||||
|
Loading…
Reference in New Issue
Block a user