Fixing port for hidden service

This commit is contained in:
Dmitri Bogomolov 2019-12-20 10:53:31 +02:00
parent 1c4d7655c3
commit 61f64f72c3
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -112,7 +112,8 @@ def connect_plugin(config): # pylint: disable=too-many-branches
onionkeytype = config.safeGet(onionhostname, 'keytype')
response = controller.create_ephemeral_hidden_service(
config.safeGetInt('bitmessagesettings', 'onionport', 8444),
{config.safeGetInt('bitmessagesettings', 'onionport', 8444):
config.safeGetInt('bitmessagesettings', 'port', 8444)},
key_type=(onionkeytype or 'NEW'),
key_content=(onionkey or onionhostname and 'ED25519-V3' or 'BEST')
)