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 650382ad568824035b2721430228ea656b6e175d
parent 95e73328523fec6c79820fef0d16e948b415f04c
Author: Sheng <webmaster0115@gmail.com>
Date:   Thu, 15 Mar 2018 02:00:25 +0800

Moved a line

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

diff --git a/main.py b/main.py @@ -314,6 +314,7 @@ def get_policy_class(policy): def main(): + parse_command_line() base_dir = os.path.dirname(__file__) host_file = os.path.join(base_dir, 'known_hosts') host_keys = create_host_file(host_file) @@ -334,13 +335,13 @@ def main(): (r'/ws', WsockHandler) ] - parse_command_line() settings.update( debug=options.debug, host_file=host_file, host_keys=host_keys, policy=policy_class() ) + app = tornado.web.Application(handlers, **settings) app.listen(options.port, options.address) logging.info('Listening on {}:{}'.format(options.address, options.port))