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
eeef3df3
Commit
eeef3df3
authored
Dec 26, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改发送connect msg
parent
fb44c3ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
connection.py
coco/connection.py
+0
-1
proxy.py
coco/proxy.py
+1
-1
No files found.
coco/connection.py
View file @
eeef3df3
...
@@ -12,7 +12,6 @@ except ImportError:
...
@@ -12,7 +12,6 @@ except ImportError:
import
selectors2
as
selectors
import
selectors2
as
selectors
import
paramiko
import
paramiko
from
paramiko.ssh_exception
import
SSHException
from
.service
import
app_service
from
.service
import
app_service
from
.config
import
config
from
.config
import
config
...
...
coco/proxy.py
View file @
eeef3df3
...
@@ -103,6 +103,7 @@ class ProxyServer:
...
@@ -103,6 +103,7 @@ class ProxyServer:
server
=
self
.
get_ssh_server_conn
()
server
=
self
.
get_ssh_server_conn
()
else
:
else
:
server
=
None
server
=
None
self
.
client
.
send
(
b
'
\r\n
'
)
self
.
connecting
=
False
self
.
connecting
=
False
return
server
return
server
...
@@ -148,6 +149,5 @@ class ProxyServer:
...
@@ -148,6 +149,5 @@ class ProxyServer:
self
.
client
.
send_unicode
(
'
\x08\x08\x08\x08
{:.1f}'
.
format
(
delay
))
self
.
client
.
send_unicode
(
'
\x08\x08\x08\x08
{:.1f}'
.
format
(
delay
))
time
.
sleep
(
0.1
)
time
.
sleep
(
0.1
)
delay
+=
0.1
delay
+=
0.1
self
.
client
.
send
(
b
'
\r\n
'
)
thread
=
threading
.
Thread
(
target
=
func
)
thread
=
threading
.
Thread
(
target
=
func
)
thread
.
start
()
thread
.
start
()
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