Fixed typo

pull/12/head
Sheng 2018-03-16 13:11:32 +08:00
parent 82a6dfdabd
commit 24f53533bd
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ define('port', default=8888, help='listen port', type=int)
define('debug', default=False, help='debug mode', type=bool) define('debug', default=False, help='debug mode', type=bool)
define('policy', default='reject', define('policy', default='reject',
help='missing host key policy, reject|autoadd|warning') help='missing host key policy, reject|autoadd|warning')
define('period', default=10, help='seconds for PeriodicCallback', type=int) define('period', default=10, help='seconds for periodic callback', type=int)
BUF_SIZE = 1024 BUF_SIZE = 1024
@ -322,7 +322,7 @@ def main():
policy_class = get_policy_class(options.policy) policy_class = get_policy_class(options.policy)
if policy_class is paramiko.client.AutoAddPolicy: if policy_class is paramiko.client.AutoAddPolicy:
host_keys.save(filename) # for permssion test host_keys.save(filename) # for permission test
host_keys._last_len = len(host_keys) host_keys._last_len = len(host_keys)
tornado.ioloop.PeriodicCallback( tornado.ioloop.PeriodicCallback(
lambda: save_host_keys(host_keys, filename), lambda: save_host_keys(host_keys, filename),