Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
c3785ae1
Commit
c3785ae1
authored
Jun 24, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove proxy handshake debug.
parent
ad873493
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
websocket.py
utils/websocket.py
+3
-12
No files found.
utils/websocket.py
View file @
c3785ae1
...
...
@@ -105,7 +105,7 @@ def do_handshake(sock):
scheme
=
"ws"
print
" using plain (not SSL) socket"
handshake
=
retsock
.
recv
(
4096
)
print
"handshake: "
+
repr
(
handshake
)
#
print "handshake: " + repr(handshake)
h
=
parse_handshake
(
handshake
)
# Parse client settings from the GET path
...
...
@@ -127,8 +127,7 @@ def do_handshake(sock):
response
=
server_handshake
%
(
pre
,
h
[
'Origin'
],
pre
,
scheme
,
h
[
'Host'
],
h
[
'path'
],
pre
,
trailer
)
print
"sending response:"
,
repr
(
response
)
#print "sending response:", repr(response)
retsock
.
send
(
response
)
return
retsock
...
...
@@ -157,15 +156,7 @@ def gen_md5(keys):
num1
=
int
(
""
.
join
([
c
for
c
in
key1
if
c
.
isdigit
()]))
/
spaces1
num2
=
int
(
""
.
join
([
c
for
c
in
key2
if
c
.
isdigit
()]))
/
spaces2
packed
=
struct
.
pack
(
'>II8s'
,
num1
,
num2
,
key3
)
digest
=
md5
(
packed
)
.
digest
()
print
"num1:"
,
num1
print
"num2:"
,
num2
print
"key3:"
,
repr
(
key3
)
print
"packed:"
,
packed
print
"digest:"
,
repr
(
digest
)
return
digest
return
md5
(
struct
.
pack
(
'>II8s'
,
num1
,
num2
,
key3
))
.
digest
()
def
daemonize
():
os
.
umask
(
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