mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
call function to find custom ssh port
This commit is contained in:
@@ -32,6 +32,8 @@ class SSHServer(multi.Thread):
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
SSHServer.DEFAULT_PORT = int(items.split(' ')[1])
|
SSHServer.DEFAULT_PORT = int(items.split(' ')[1])
|
||||||
|
|
||||||
|
logging.writeToFile('SSH Port for WebTerminal Connection: %s' % (SSHServer.DEFAULT_PORT))
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
logging.writeToFile('%s. [SSHServer.findSSHPort]' % (str(msg)))
|
logging.writeToFile('%s. [SSHServer.findSSHPort]' % (str(msg)))
|
||||||
|
|
||||||
@@ -142,6 +144,8 @@ if __name__ == "__main__":
|
|||||||
writeToFile.write(str(os.getpid()))
|
writeToFile.write(str(os.getpid()))
|
||||||
writeToFile.close()
|
writeToFile.close()
|
||||||
|
|
||||||
|
SSHServer.findSSHPort()
|
||||||
|
|
||||||
http_server = tornado.httpserver.HTTPServer(application, ssl_options={
|
http_server = tornado.httpserver.HTTPServer(application, ssl_options={
|
||||||
"certfile": "/usr/local/lscp/conf/cert.pem",
|
"certfile": "/usr/local/lscp/conf/cert.pem",
|
||||||
"keyfile": "/usr/local/lscp/conf/key.pem",
|
"keyfile": "/usr/local/lscp/conf/key.pem",
|
||||||
|
|||||||
Reference in New Issue
Block a user