mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 05:15:49 +01:00
bug fix: issues
This commit is contained in:
@@ -145,22 +145,22 @@ 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",
|
||||
}, )
|
||||
|
||||
ADDR = '0.0.0.0'
|
||||
http_server.listen(5678, ADDR)
|
||||
print('*** Websocket Server Started at %s***' % ADDR)
|
||||
|
||||
import signal
|
||||
def close_sig_handler(signal, frame):
|
||||
http_server.stop()
|
||||
sys.exit()
|
||||
|
||||
signal.signal(signal.SIGINT, close_sig_handler)
|
||||
|
||||
tornado.ioloop.IOLoop.instance().start()
|
||||
# SSHServer.findSSHPort()
|
||||
#
|
||||
# http_server = tornado.httpserver.HTTPServer(application, ssl_options={
|
||||
# "certfile": "/usr/local/lscp/conf/cert.pem",
|
||||
# "keyfile": "/usr/local/lscp/conf/key.pem",
|
||||
# }, )
|
||||
#
|
||||
# ADDR = '0.0.0.0'
|
||||
# http_server.listen(5678, ADDR)
|
||||
# print('*** Websocket Server Started at %s***' % ADDR)
|
||||
#
|
||||
# import signal
|
||||
# def close_sig_handler(signal, frame):
|
||||
# http_server.stop()
|
||||
# sys.exit()
|
||||
#
|
||||
# signal.signal(signal.SIGINT, close_sig_handler)
|
||||
#
|
||||
# tornado.ioloop.IOLoop.instance().start()
|
||||
Reference in New Issue
Block a user