mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-23 02:32:42 +00:00
fix i2p introducer, different ports
This commit is contained in:
parent
abfca04af5
commit
d3c39f8604
@ -227,7 +227,7 @@ def introducer(reactor, temp_dir, flog_gatherer, request):
|
|||||||
|
|
||||||
config = read_config(intro_dir, "tub.port")
|
config = read_config(intro_dir, "tub.port")
|
||||||
config.set_config("node", "nickname", "introducer-tor")
|
config.set_config("node", "nickname", "introducer-tor")
|
||||||
config.set_config("node", "web.port", "4561")
|
config.set_config("node", "web.port", "4562")
|
||||||
config.set_config("node", "log_gatherer.furl", flog_gatherer)
|
config.set_config("node", "log_gatherer.furl", flog_gatherer)
|
||||||
|
|
||||||
# "tahoe run" is consistent across Linux/macOS/Windows, unlike the old
|
# "tahoe run" is consistent across Linux/macOS/Windows, unlike the old
|
||||||
|
@ -68,13 +68,6 @@ def i2p_network(reactor, temp_dir, request):
|
|||||||
include_result=False,
|
include_result=False,
|
||||||
)
|
)
|
||||||
def i2p_introducer(reactor, temp_dir, flog_gatherer, request):
|
def i2p_introducer(reactor, temp_dir, flog_gatherer, request):
|
||||||
config = '''
|
|
||||||
[node]
|
|
||||||
nickname = introducer_i2p
|
|
||||||
web.port = 4561
|
|
||||||
log_gatherer.furl = {log_furl}
|
|
||||||
'''.format(log_furl=flog_gatherer)
|
|
||||||
|
|
||||||
intro_dir = join(temp_dir, 'introducer_i2p')
|
intro_dir = join(temp_dir, 'introducer_i2p')
|
||||||
print("making introducer", intro_dir)
|
print("making introducer", intro_dir)
|
||||||
|
|
||||||
@ -94,8 +87,10 @@ log_gatherer.furl = {log_furl}
|
|||||||
pytest_twisted.blockon(done_proto.done)
|
pytest_twisted.blockon(done_proto.done)
|
||||||
|
|
||||||
# over-write the config file with our stuff
|
# over-write the config file with our stuff
|
||||||
with open(join(intro_dir, 'tahoe.cfg'), 'w') as f:
|
config = read_config(intro_dir, "tub.port")
|
||||||
f.write(config)
|
config.set_config("node", "nickname", "introducer_i2p")
|
||||||
|
config.set_config("node", "web.port", "4563")
|
||||||
|
config.set_config("node", "log_gatherer.furl", flog_gatherer)
|
||||||
|
|
||||||
# "tahoe run" is consistent across Linux/macOS/Windows, unlike the old
|
# "tahoe run" is consistent across Linux/macOS/Windows, unlike the old
|
||||||
# "start" command.
|
# "start" command.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user