mirror of https://github.com/jumpserver/jumpserver
Merge branch 'feat_Only_run_one' into dev
commit
49e7796df9
|
@ -316,7 +316,7 @@ class WebTerminalHandler(tornado.websocket.WebSocketHandler):
|
|||
login_role.name))
|
||||
self.term = WebTty(self.user, asset, login_role, login_type='web')
|
||||
# self.term.remote_ip = self.request.remote_ip
|
||||
self.term.remote_ip = self.request.headers.get("X-Real_IP")
|
||||
self.term.remote_ip = self.request.headers.get("X-Real-IP")
|
||||
self.ssh = self.term.get_connection()
|
||||
self.channel = self.ssh.invoke_shell(term='xterm')
|
||||
WebTerminalHandler.tasks.append(MyThread(target=self.forward_outbound))
|
||||
|
|
Loading…
Reference in New Issue