From 8b9d75d726d2f3898fdffb109a7885d048342659 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Thu, 8 Feb 2018 18:01:34 +0100 Subject: [PATCH] Don't mark passive local connections as not connectable --- src/Connection/Connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connection/Connection.py b/src/Connection/Connection.py index 3986f604..c6e429d9 100644 --- a/src/Connection/Connection.py +++ b/src/Connection/Connection.py @@ -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