From a3846aafe5909b38f3f57287bb42598f680438ba Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 2 Sep 2020 13:26:46 +0500 Subject: [PATCH] call function to find custom ssh port --- WebTerminal/CPWebSocket.py | 4 ++++ 1 file changed, 4 insertions(+) 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",