Make network insensitive to absence of onionhostname config option
This commit is contained in:
parent
8e05e4a178
commit
8fc42b758d
|
@ -241,8 +241,6 @@ def updateConfig():
|
|||
* defaults.networkDefaultPayloadLengthExtraBytes)
|
||||
)
|
||||
|
||||
if not config.has_option('bitmessagesettings', 'onionhostname'):
|
||||
config.set('bitmessagesettings', 'onionhostname', '')
|
||||
if not config.has_option('bitmessagesettings', 'onionport'):
|
||||
config.set('bitmessagesettings', 'onionport', '8444')
|
||||
if not config.has_option('bitmessagesettings', 'onionbindip'):
|
||||
|
|
|
@ -164,7 +164,7 @@ class BMConnectionPool(object):
|
|||
def getListeningIP():
|
||||
"""What IP are we supposed to be listening on?"""
|
||||
if config.safeGet(
|
||||
"bitmessagesettings", "onionhostname").endswith(".onion"):
|
||||
"bitmessagesettings", "onionhostname", "").endswith(".onion"):
|
||||
host = config.safeGet(
|
||||
"bitmessagesettings", "onionbindip")
|
||||
else:
|
||||
|
|
Reference in New Issue
Block a user