diff --git a/run_server.py b/run_server.py index 48a5d0467..56bd23c02 100755 --- a/run_server.py +++ b/run_server.py @@ -494,7 +494,7 @@ def main(): [ (r'/ws/monitor', MonitorHandler), (r'/ws/terminal', WebTerminalHandler), - (r'/kill', WebTerminalKillHandler), + (r'/ws/kill', WebTerminalKillHandler), (r'/ws/exec', ExecHandler), (r"/static/(.*)", tornado.web.StaticFileHandler, dict(path=os.path.join(os.path.dirname(__file__), "static"))), diff --git a/templates/jlog/log_online.html b/templates/jlog/log_online.html index 290612c43..a65662da3 100644 --- a/templates/jlog/log_online.html +++ b/templates/jlog/log_online.html @@ -215,7 +215,7 @@ function cut(num, login_type){ var protocol = window.location.protocol; - var endpoint = protocol + '//' + document.URL.match(RegExp('//(.*?)/'))[1] + '/kill'; + var endpoint = protocol + '//' + document.URL.match(RegExp('//(.*?)/'))[1] + '/ws/kill'; if (login_type=='web'){ var g_url = endpoint + '?id=' + num; console.log(g_url);