webssh

Web based ssh client https://github.com/huashengdun/webssh webssh.huashengdun.org/
git clone http://git.hanabi.in/repos/webssh.git
Log | Files | Refs | README | LICENSE

commit fdf0f88e38f461a6565ca1ac81e3e4da08ef14c3
parent 0b4e41b1278289d44f5612246a569d198623b5e0
Author: Sheng <webmaster0115@gmail.com>
Date:   Wed, 11 Apr 2018 13:45:56 +0800

Renamed method

Diffstat:
Mmain.py | 4++--
Mpolicy.py | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/main.py b/main.py @@ -1,7 +1,7 @@ import logging import tornado.web +import tornado.ioloop -from tornado.ioloop import IOLoop from tornado.options import parse_command_line, options from handler import IndexHandler, WsockHandler from settings import get_application_settings @@ -16,7 +16,7 @@ def main(): (r'/ws', WsockHandler) ] - loop = IOLoop.current() + loop = tornado.ioloop.IOLoop.current() app = tornado.web.Application(handlers, **settings) app._loop = loop app.listen(options.port, options.address) diff --git a/policy.py b/policy.py @@ -41,7 +41,7 @@ class AutoAddPolicy(paramiko.client.MissingHostKeyPolicy): """ lock = threading.Lock() - def is_missing_host_keys(self, client, hostname, key): + def is_missing_host_key(self, client, hostname, key): k = client._host_keys.lookup(hostname) if k is None: return True @@ -53,7 +53,7 @@ class AutoAddPolicy(paramiko.client.MissingHostKeyPolicy): def missing_host_key(self, client, hostname, key): with self.lock: - if self.is_missing_host_keys(client, hostname, key): + if self.is_missing_host_key(client, hostname, key): keytype = key.get_name() logging.info( 'Adding {} host key for {}'.format(keytype, hostname)