mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-11 23:42:38 +00:00
Also update the introducer's use of read_config
This commit is contained in:
parent
fb4c5cf91f
commit
7e17ffb75d
@ -30,10 +30,7 @@ are set to disallow users other than its owner from reading the contents of
|
|||||||
the files. See the 'configuration.rst' documentation file for details.
|
the files. See the 'configuration.rst' documentation file for details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
_valid_config = node._common_valid_config
|
||||||
def _valid_config_sections():
|
|
||||||
return node._common_config_sections()
|
|
||||||
|
|
||||||
|
|
||||||
class FurlFileConflictError(Exception):
|
class FurlFileConflictError(Exception):
|
||||||
pass
|
pass
|
||||||
@ -52,7 +49,7 @@ def create_introducer(basedir=u"."):
|
|||||||
config = read_config(
|
config = read_config(
|
||||||
basedir, u"client.port",
|
basedir, u"client.port",
|
||||||
generated_files=["introducer.furl"],
|
generated_files=["introducer.furl"],
|
||||||
_valid_config_sections=_valid_config_sections,
|
_valid_config=_valid_config(),
|
||||||
)
|
)
|
||||||
|
|
||||||
i2p_provider = create_i2p_provider(reactor, config)
|
i2p_provider = create_i2p_provider(reactor, config)
|
||||||
|
Loading…
Reference in New Issue
Block a user