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 f157be5b6c443e0e651f2e6a6b0577a552b3ad17
parent 6c9af890bc2568c45076b512272f6fed6fec1a5f
Author: Sheng <webmaster0115@gmail.com>
Date:   Wed, 11 Apr 2018 20:19:49 +0800

Renamed get_host_keys to load_host_keys

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

diff --git a/policy.py b/policy.py @@ -4,7 +4,7 @@ import threading import paramiko -def get_host_keys(path): +def load_host_keys(path): if os.path.exists(path) and os.path.isfile(path): return paramiko.hostkeys.HostKeys(filename=path) return paramiko.hostkeys.HostKeys() diff --git a/settings.py b/settings.py @@ -3,7 +3,7 @@ import os.path import uuid from tornado.options import define -from policy import get_host_keys, get_policy_class, check_policy_setting +from policy import load_host_keys, get_policy_class, check_policy_setting define('address', default='127.0.0.1', help='listen address') @@ -34,13 +34,13 @@ def get_host_keys_settings(options): host_keys_filename = os.path.join(base_dir, 'known_hosts') else: host_keys_filename = options.hostFile - host_keys = get_host_keys(host_keys_filename) + host_keys = load_host_keys(host_keys_filename) if not options.sysHostFile: filename = os.path.expanduser('~/.ssh/known_hosts') else: filename = options.sysHostFile - system_host_keys = get_host_keys(filename) + system_host_keys = load_host_keys(filename) settings = dict( host_keys=host_keys,