Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
Project
Project
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
ops
coco
Commits
83c93560
Unverified
Commit
83c93560
authored
Apr 04, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update
parent
78c7efe8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
httpd.py
coco/httpd.py
+9
-5
requirements.txt
requirements/requirements.txt
+1
-1
No files found.
coco/httpd.py
View file @
83c93560
...
...
@@ -162,15 +162,19 @@ class ProxyNamespace(BaseNamespace):
logger
.
debug
(
message
)
token
=
message
.
get
(
'token'
,
None
)
secret
=
message
.
get
(
'secret'
,
None
)
if
token
or
secret
:
self
.
emit
(
'data'
,
"
\n
Operation not permitted!"
)
connection
=
str
(
uuid
.
uuid4
())
self
.
emit
(
'room'
,
{
'room'
:
connection
,
'secret'
:
secret
})
if
not
(
token
or
secret
):
logger
.
debug
(
"token or secret is None"
)
self
.
emit
(
'data'
,
{
'data'
:
"
\n
Operation not permitted!"
,
'room'
:
connection
})
self
.
emit
(
'disconnect'
)
return
None
host
=
self
.
app
.
service
.
get_token_asset
(
token
)
.
json
()
host
=
self
.
app
.
service
.
get_token_asset
(
token
)
logger
.
debug
(
host
)
if
host
:
self
.
emit
(
'data'
,
"
\n
Operation not permitted!"
)
if
not
host
:
logger
.
debug
(
"host is None"
)
self
.
emit
(
'data'
,
{
'data'
:
"
\n
Operation not permitted!"
,
'room'
:
connection
})
self
.
emit
(
'disconnect'
)
return
None
...
...
requirements/requirements.txt
View file @
83c93560
...
...
@@ -20,7 +20,7 @@ Jinja2==2.10
jmespath==0.9.3
jms-es-sdk==0.5.2
jms-storage==0.0.12
jumpserver-python-sdk==0.0.3
6
jumpserver-python-sdk==0.0.3
7
MarkupSafe==1.0
oss2==2.4.0
paramiko==2.4.0
...
...
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