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"]