This commit is contained in:
mailchuck 2015-11-23 06:58:25 +01:00 committed by Peter Surda
parent f77afe8fae
commit 7b4264a109
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ def assembleVersionMessage(remoteHost, remotePort, myStreamNumber, server = Fals
payload += pack('>q', 1) # bitflags of the services I offer.
payload += '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xFF\xFF' + pack(
'>L', 2130706433) # = 127.0.0.1. This will be ignored by the remote host. The actual remote connected IP will be used.
if safeConfigGetBoolean('bitmessagesettings', 'upnp' and extPort):
if safeConfigGetBoolean('bitmessagesettings', 'upnp') and extPort:
payload += pack('>H', extPort)
else:
payload += pack('>H', shared.config.getint('bitmessagesettings', 'port'))