Rev3851, Fix typo with onion address detection
This commit is contained in:
parent
e89cb4cc0e
commit
952a1a1da8
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ class Config(object):
|
||||||
|
|
||||||
def __init__(self, argv):
|
def __init__(self, argv):
|
||||||
self.version = "0.6.5"
|
self.version = "0.6.5"
|
||||||
self.rev = 3850
|
self.rev = 3851
|
||||||
self.argv = argv
|
self.argv = argv
|
||||||
self.action = None
|
self.action = None
|
||||||
self.pending_changes = {}
|
self.pending_changes = {}
|
||||||
|
|
|
@ -333,7 +333,7 @@ class Connection(object):
|
||||||
# My handshake info
|
# My handshake info
|
||||||
def getHandshakeInfo(self):
|
def getHandshakeInfo(self):
|
||||||
# No TLS for onion connections
|
# No TLS for onion connections
|
||||||
if self.ip_type == ".onion":
|
if self.ip_type == "onion":
|
||||||
crypt_supported = []
|
crypt_supported = []
|
||||||
else:
|
else:
|
||||||
crypt_supported = CryptConnection.manager.crypt_supported
|
crypt_supported = CryptConnection.manager.crypt_supported
|
||||||
|
@ -390,7 +390,7 @@ class Connection(object):
|
||||||
|
|
||||||
# Check if we can encrypt the connection
|
# Check if we can encrypt the connection
|
||||||
if handshake.get("crypt_supported") and self.ip not in self.server.broken_ssl_ips:
|
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
|
crypt = None
|
||||||
elif handshake.get("crypt"): # Recommended crypt by server
|
elif handshake.get("crypt"): # Recommended crypt by server
|
||||||
crypt = handshake["crypt"]
|
crypt = handshake["crypt"]
|
||||||
|
|
Loading…
Reference in a new issue