Update server.py
Some checks are pending
Check syntax / check (push) Waiting to run
Some checks are pending
Check syntax / check (push) Waiting to run
This commit is contained in:
parent
e0df590c76
commit
e980c2c70f
1 changed files with 0 additions and 8 deletions
|
@ -620,10 +620,6 @@ def tcp_session(sock):
|
||||||
ip_to = restrict_ip
|
ip_to = restrict_ip
|
||||||
threading.Thread(target=session, daemon=True, args=[connection, client, ip_to]).start()
|
threading.Thread(target=session, daemon=True, args=[connection, client, ip_to]).start()
|
||||||
except:
|
except:
|
||||||
print("Shutting down...")
|
|
||||||
time.sleep(2)
|
|
||||||
sock.shutdown(1)
|
|
||||||
sock.close()
|
|
||||||
print("Something went wrong...")
|
print("Something went wrong...")
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
def ssl_session(sock2):
|
def ssl_session(sock2):
|
||||||
|
@ -636,10 +632,6 @@ def ssl_session(sock2):
|
||||||
ip_to = restrict_ip
|
ip_to = restrict_ip
|
||||||
threading.Thread(target=session, daemon=True, args=[connection, client, ip_to]).start()
|
threading.Thread(target=session, daemon=True, args=[connection, client, ip_to]).start()
|
||||||
except:
|
except:
|
||||||
print("Shutting down...")
|
|
||||||
time.sleep(2)
|
|
||||||
sock.shutdown(1)
|
|
||||||
sock.close()
|
|
||||||
print("Something went wrong...")
|
print("Something went wrong...")
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
for ip, i in sockets.items():
|
for ip, i in sockets.items():
|
||||||
|
|
Loading…
Reference in a new issue