Merge branch 'feat_Only_run_one' into dev

pull/94/head
liuzheng712 2016-02-26 10:45:40 +08:00
commit 49e7796df9
1 changed files with 1 additions and 1 deletions

View File

@ -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))