Commit 24f53533 by Sheng

Fixed typo

parent 82a6dfda
...@@ -20,7 +20,7 @@ define('port', default=8888, help='listen port', type=int) ...@@ -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(): ...@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment