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
24f53533
Commit
24f53533
authored
Mar 16, 2018
by
Sheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typo
parent
82a6dfda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.py
main.py
+2
-2
No files found.
main.py
View file @
24f53533
...
@@ -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
PeriodicC
allback'
,
type
=
int
)
define
(
'period'
,
default
=
10
,
help
=
'seconds for
periodic c
allback'
,
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 perm
i
ssion 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
),
...
...
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