Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webssh
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑天保
webssh
Commits
75f74ade
Commit
75f74ade
authored
Aug 10, 2018
by
Sheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an option for enabling websocket ping functionality
parent
1e4ece58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
settings.py
webssh/settings.py
+7
-5
No files found.
webssh/settings.py
View file @
75f74ade
...
@@ -16,14 +16,15 @@ def print_version(flag):
...
@@ -16,14 +16,15 @@ def print_version(flag):
sys
.
exit
(
0
)
sys
.
exit
(
0
)
define
(
'address'
,
default
=
'127.0.0.1'
,
help
=
'
l
isten address'
)
define
(
'address'
,
default
=
'127.0.0.1'
,
help
=
'
L
isten address'
)
define
(
'port'
,
default
=
8888
,
help
=
'listen port'
,
type
=
int
)
define
(
'port'
,
type
=
int
,
default
=
8888
,
help
=
'Listen port'
)
define
(
'debug'
,
default
=
False
,
help
=
'debug mode'
,
type
=
bool
)
define
(
'debug'
,
type
=
bool
,
default
=
False
,
help
=
'Debug mode'
)
define
(
'policy'
,
default
=
'warning'
,
define
(
'policy'
,
default
=
'warning'
,
help
=
'
m
issing host key policy, reject|autoadd|warning'
)
help
=
'
M
issing host key policy, reject|autoadd|warning'
)
define
(
'hostFile'
,
default
=
''
,
help
=
'User defined host keys file'
)
define
(
'hostFile'
,
default
=
''
,
help
=
'User defined host keys file'
)
define
(
'sysHostFile'
,
default
=
''
,
help
=
'System wide 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
)
callback
=
print_version
)
...
@@ -35,6 +36,7 @@ def get_app_settings(options):
...
@@ -35,6 +36,7 @@ def get_app_settings(options):
template_path
=
os
.
path
.
join
(
base_dir
,
'templates'
),
template_path
=
os
.
path
.
join
(
base_dir
,
'templates'
),
static_path
=
os
.
path
.
join
(
base_dir
,
'static'
),
static_path
=
os
.
path
.
join
(
base_dir
,
'static'
),
cookie_secret
=
uuid
.
uuid4
()
.
hex
,
cookie_secret
=
uuid
.
uuid4
()
.
hex
,
websocket_ping_interval
=
options
.
wpIntvl
,
xsrf_cookies
=
(
not
options
.
debug
),
xsrf_cookies
=
(
not
options
.
debug
),
debug
=
options
.
debug
debug
=
options
.
debug
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment