Update server.py

This commit is contained in:
Nova Cat 2025-02-04 19:12:05 -08:00
parent 1d6716e8a2
commit 2907d1942c

View file

@ -262,10 +262,10 @@ def session(connection, client, ip, isssl=False):
return tags + (" " if tags != "" else "") return tags + (" " if tags != "" else "")
try: try:
print("Connected to client IP: {}".format(client)) print("Connected to client IP: {}".format(client))
if isssl: #if isssl:
connection.do_handshake() # connection.do_handshake()
tlsver = connection.version() # tlsver = connection.version()
print(f"Got SSL version: {tlsver}") # print(f"Got SSL version: {tlsver}")
connection.settimeout(None) connection.settimeout(None)
connection.sendall(bytes(f":{server} NOTICE * :*** Looking for your hostname...\r\n","UTF-8")) connection.sendall(bytes(f":{server} NOTICE * :*** Looking for your hostname...\r\n","UTF-8"))
connection.sendall(bytes(f":{server} NOTICE * :*** Checking your ident...\r\n","UTF-8")) connection.sendall(bytes(f":{server} NOTICE * :*** Checking your ident...\r\n","UTF-8"))