fix(run_server.py): test if it invoke_shell bug

pull/123/head
liuzheng712 2016-03-04 20:40:37 +08:00
parent 20b5facc38
commit 8e30ffb840
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ class WebTerminalHandler(tornado.websocket.WebSocketHandler):
if not self.term.remote_ip: if not self.term.remote_ip:
self.term.remote_ip = self.request.remote_ip self.term.remote_ip = self.request.remote_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='vt100')
WebTerminalHandler.tasks.append(MyThread(target=self.forward_outbound)) WebTerminalHandler.tasks.append(MyThread(target=self.forward_outbound))
WebTerminalHandler.clients.append(self) WebTerminalHandler.clients.append(self)