Rev3851, Fix typo with onion address detection

This commit is contained in:
shortcutme 2019-02-16 20:50:49 +01:00
parent e89cb4cc0e
commit 952a1a1da8
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
2 changed files with 3 additions and 3 deletions

View File

@ -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 = {}

View File

@ -333,7 +333,7 @@ class Connection(object):
# 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 @@ class Connection(object):
# 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"]