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 75f74ade5b08c15ecbbc5fcf3fe6bc4bcc6ef799
parent 1e4ece58c89029235d21c1c3954c7b6a6e5aa550
Author: Sheng <webmaster0115@gmail.com>
Date:   Fri, 10 Aug 2018 10:13:20 +0800

Added an option for enabling websocket ping functionality

Diffstat:
Mwebssh/settings.py | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/webssh/settings.py b/webssh/settings.py @@ -16,14 +16,15 @@ def print_version(flag): sys.exit(0) -define('address', default='127.0.0.1', help='listen address') -define('port', default=8888, help='listen port', type=int) -define('debug', default=False, help='debug mode', type=bool) +define('address', default='127.0.0.1', help='Listen address') +define('port', type=int, default=8888, help='Listen port') +define('debug', type=bool, default=False, help='Debug mode') define('policy', default='warning', - help='missing host key policy, reject|autoadd|warning') + help='Missing host key policy, reject|autoadd|warning') define('hostFile', default='', help='User defined host keys file') define('sysHostFile', default='', help='System wide host keys file') -define('version', type=bool, help='show version information', +define('wpIntvl', type=int, default=0, help='Websocket ping interval') +define('version', type=bool, help='Show version information', callback=print_version) @@ -35,6 +36,7 @@ def get_app_settings(options): template_path=os.path.join(base_dir, 'templates'), static_path=os.path.join(base_dir, 'static'), cookie_secret=uuid.uuid4().hex, + websocket_ping_interval=options.wpIntvl, xsrf_cookies=(not options.debug), debug=options.debug )