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 024612599bdc634a6add88a2d655365c8ac8b391
parent 53ed3aef7c3104e06a05ddf2a0ba0690f7aec7a7
Author: Sheng <webmaster0115@gmail.com>
Date:   Tue, 10 Apr 2018 09:34:40 +0800

Removed MissingHostKeyPolicy base class

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

diff --git a/main.py b/main.py @@ -34,7 +34,6 @@ workers = {} class AutoAddPolicy(paramiko.client.MissingHostKeyPolicy): - """ thread-safe AutoAddPolicy """ @@ -353,7 +352,8 @@ def get_policy_class(policy): policy += 'policy' dic = {k.lower(): v for k, v in vars(paramiko.client).items() if type(v) - is type and issubclass(v, paramiko.client.MissingHostKeyPolicy)} + is type and issubclass(v, paramiko.client.MissingHostKeyPolicy) + and v is not paramiko.client.MissingHostKeyPolicy} try: cls = dic[policy] except KeyError: