Skip to content

Commit 8fc42b7

Browse files
author
Lee Miller
committed
Make network insensitive to absence of onionhostname config option
1 parent 8e05e4a commit 8fc42b7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/helper_startup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,6 @@ def updateConfig():
241241
* defaults.networkDefaultPayloadLengthExtraBytes)
242242
)
243243

244-
if not config.has_option('bitmessagesettings', 'onionhostname'):
245-
config.set('bitmessagesettings', 'onionhostname', '')
246244
if not config.has_option('bitmessagesettings', 'onionport'):
247245
config.set('bitmessagesettings', 'onionport', '8444')
248246
if not config.has_option('bitmessagesettings', 'onionbindip'):

src/network/connectionpool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def removeConnection(self, connection):
164164
def getListeningIP():
165165
"""What IP are we supposed to be listening on?"""
166166
if config.safeGet(
167-
"bitmessagesettings", "onionhostname").endswith(".onion"):
167+
"bitmessagesettings", "onionhostname", "").endswith(".onion"):
168168
host = config.safeGet(
169169
"bitmessagesettings", "onionbindip")
170170
else:

0 commit comments

Comments
 (0)