diff --git a/WebTerminal/CPWebSocket.py b/WebTerminal/CPWebSocket.py index d9a449328..9c83e8a38 100644 --- a/WebTerminal/CPWebSocket.py +++ b/WebTerminal/CPWebSocket.py @@ -32,6 +32,8 @@ class SSHServer(multi.Thread): pass else: SSHServer.DEFAULT_PORT = int(items.split(' ')[1]) + + logging.writeToFile('SSH Port for WebTerminal Connection: %s' % (SSHServer.DEFAULT_PORT)) except BaseException as msg: logging.writeToFile('%s. [SSHServer.findSSHPort]' % (str(msg))) @@ -142,6 +144,8 @@ if __name__ == "__main__": writeToFile.write(str(os.getpid())) writeToFile.close() + SSHServer.findSSHPort() + http_server = tornado.httpserver.HTTPServer(application, ssl_options={ "certfile": "/usr/local/lscp/conf/cert.pem", "keyfile": "/usr/local/lscp/conf/key.pem",