From 79b566a90753bb9d019e21d966fc233516790ede Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Mon, 6 Feb 2017 17:39:42 +0100 Subject: [PATCH] Fix bitflags in version packet --- src/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol.py b/src/protocol.py index 816b2c1d..32f3afca 100644 --- a/src/protocol.py +++ b/src/protocol.py @@ -134,7 +134,7 @@ def assembleVersionMessage(remoteHost, remotePort, myStreamNumber, server = Fals payload += encodeHost(remoteHost) payload += pack('>H', remotePort) # remote IPv6 and port - payload += pack('>q', 1) # bitflags of the services I offer. + payload += pack('>q', NODE_NETWORK|(NODE_SSL if haveSSL(server) else 0)) # 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. # we have a separate extPort and