From 952a1a1da8c32554e2c84a595eb96d661663053c Mon Sep 17 00:00:00 2001 From: shortcutme Date: Sat, 16 Feb 2019 20:50:49 +0100 Subject: [PATCH] Rev3851, Fix typo with onion address detection --- src/Config.py | 2 +- src/Connection/Connection.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Config.py b/src/Config.py index e9df5a715..99e4a0967 100644 --- a/src/Config.py +++ b/src/Config.py @@ -13,7 +13,7 @@ class Config(object): def __init__(self, argv): self.version = "0.6.5" - self.rev = 3850 + self.rev = 3851 self.argv = argv self.action = None self.pending_changes = {} diff --git a/src/Connection/Connection.py b/src/Connection/Connection.py index c6fa52b78..b5f7ae70d 100644 --- a/src/Connection/Connection.py +++ b/src/Connection/Connection.py @@ -333,7 +333,7 @@ def handleStream(self, message, unpacker, buff, unpacker_bytes): # My handshake info def getHandshakeInfo(self): # No TLS for onion connections - if self.ip_type == ".onion": + if self.ip_type == "onion": crypt_supported = [] else: crypt_supported = CryptConnection.manager.crypt_supported @@ -390,7 +390,7 @@ def setHandshake(self, handshake): # Check if we can encrypt the connection if handshake.get("crypt_supported") and self.ip not in self.server.broken_ssl_ips: - if self.ip_type == ".onion" or self.ip in config.ip_local: + if self.ip_type == "onion" or self.ip in config.ip_local: crypt = None elif handshake.get("crypt"): # Recommended crypt by server crypt = handshake["crypt"]