Don't mark passive local connections as not connectable
This commit is contained in:
parent
7e4a4459b4
commit
8b9d75d726
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ class Connection(object):
|
|||
|
||||
def setHandshake(self, handshake):
|
||||
self.handshake = handshake
|
||||
if handshake.get("port_opened", None) is False and "onion" not in handshake: # Not connectable
|
||||
if handshake.get("port_opened", None) is False and "onion" not in handshake and not self.is_private_ip: # Not connectable
|
||||
self.port = 0
|
||||
else:
|
||||
self.port = handshake["fileserver_port"] # Set peer fileserver port
|
||||
|
|
Loading…
Reference in a new issue