mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 05:15:49 +01:00
call function to find custom ssh port
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user