mirror of https://github.com/jumpserver/jumpserver
real ip
parent
1816723f16
commit
318a053dbf
|
@ -316,7 +316,7 @@ class WebTerminalHandler(tornado.websocket.WebSocketHandler):
|
||||||
login_role.name))
|
login_role.name))
|
||||||
self.term = WebTty(self.user, asset, login_role, login_type='web')
|
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.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.ssh = self.term.get_connection()
|
||||||
self.channel = self.ssh.invoke_shell(term='xterm')
|
self.channel = self.ssh.invoke_shell(term='xterm')
|
||||||
WebTerminalHandler.tasks.append(MyThread(target=self.forward_outbound))
|
WebTerminalHandler.tasks.append(MyThread(target=self.forward_outbound))
|
||||||
|
|
Loading…
Reference in New Issue