diff --git a/server.py b/server.py index 19ee7de..f9b7e5c 100644 --- a/server.py +++ b/server.py @@ -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"))