call function to find custom ssh port

This commit is contained in:
Usman Nasir
2020-09-02 13:26:46 +05:00
parent 65c3068292
commit a3846aafe5

View File

@@ -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",