Update server.py

This commit is contained in:
Nova Cat 2025-02-03 22:03:24 -08:00
parent 7d787fddb4
commit c3d9143389

View file

@ -236,8 +236,8 @@ def session(connection, client, ip, isssl=False):
pendingSend = "" # Text that should be sent to the client
try:
print("Connected to client IP: {}".format(client))
connection.do_handshake()
if isssl:
connection.do_handshake()
tlsver = connection.version()
print(f"Got SSL version: {tlsver}")
connection.sendall(bytes(f":{server} NOTICE * :*** Looking for your hostname...\r\n","UTF-8"))