Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sshuttle
Project
Project
Details
Activity
Releases
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
pub
sshuttle
Commits
50c2b86f
Commit
50c2b86f
authored
Jun 06, 2011
by
Brian May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename onaccept to onaccept_tcp as it is tcp specific.
parent
97dca422
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
client.py
client.py
+2
-2
No files found.
client.py
View file @
50c2b86f
...
@@ -185,7 +185,7 @@ def expire_connections(now, mux):
...
@@ -185,7 +185,7 @@ def expire_connections(now, mux):
debug3
(
'Remaining DNS requests:
%
d
\n
'
%
len
(
dnsreqs
))
debug3
(
'Remaining DNS requests:
%
d
\n
'
%
len
(
dnsreqs
))
def
onaccept
(
listener
,
mux
,
handlers
):
def
onaccept
_tcp
(
listener
,
mux
,
handlers
):
global
_extra_fd
global
_extra_fd
try
:
try
:
sock
,
srcip
=
listener
.
accept
()
sock
,
srcip
=
listener
.
accept
()
...
@@ -321,7 +321,7 @@ def _main(tcp_listener, fw, ssh_cmd, remotename, python, latency_control,
...
@@ -321,7 +321,7 @@ def _main(tcp_listener, fw, ssh_cmd, remotename, python, latency_control,
fw
.
sethostip
(
name
,
ip
)
fw
.
sethostip
(
name
,
ip
)
mux
.
got_host_list
=
onhostlist
mux
.
got_host_list
=
onhostlist
handlers
.
append
(
Handler
([
tcp_listener
],
lambda
:
onaccept
(
tcp_listener
,
mux
,
handlers
)))
handlers
.
append
(
Handler
([
tcp_listener
],
lambda
:
onaccept
_tcp
(
tcp_listener
,
mux
,
handlers
)))
if
dns_listener
:
if
dns_listener
:
handlers
.
append
(
Handler
([
dns_listener
],
lambda
:
ondns
(
dns_listener
,
mux
,
handlers
)))
handlers
.
append
(
Handler
([
dns_listener
],
lambda
:
ondns
(
dns_listener
,
mux
,
handlers
)))
...
...
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