mirror of
https://github.com/HelloZeroNet/ZeroNet.git
synced 2023-12-14 04:33:03 +01:00
Don't reset broken ssl client list on cleanup
This commit is contained in:
parent
73524d70dc
commit
b814a633c6
2 changed files with 2 additions and 1 deletions
|
@ -346,6 +346,8 @@ class Connection(object):
|
|||
# No TLS for onion connections
|
||||
if self.ip_type == "onion":
|
||||
crypt_supported = []
|
||||
elif self.ip in self.server.broken_ssl_ips:
|
||||
crypt_supported = []
|
||||
else:
|
||||
crypt_supported = CryptConnection.manager.crypt_supported
|
||||
# No peer id for onion connections
|
||||
|
|
|
@ -231,7 +231,6 @@ class ConnectionServer(object):
|
|||
run_i += 1
|
||||
time.sleep(15) # Check every minute
|
||||
self.ip_incoming = {} # Reset connected ips counter
|
||||
self.broken_ssl_ips = {} # Reset broken ssl peerids count
|
||||
last_message_time = 0
|
||||
s = time.time()
|
||||
for connection in self.connections[:]: # Make a copy
|
||||
|
|
Loading…
Reference in a new issue