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:
David Stainton 2017-01-09 17:24:08 +00:00 committed by Brian Warner
parent f42d85b453
commit 3c22a3ce50

View File

@ -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")