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
b207d1d0
Commit
b207d1d0
authored
Dec 15, 2015
by
Brian May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for --auto-nets
parent
56e3b228
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
client.py
sshuttle/client.py
+12
-3
No files found.
sshuttle/client.py
View file @
b207d1d0
...
...
@@ -445,9 +445,18 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename,
def
onroutes
(
routestr
):
if
auto_nets
:
for
line
in
routestr
.
strip
()
.
split
(
'
\n
'
):
(
family
,
ip
,
width
)
=
line
.
split
(
','
,
2
)
fw
.
auto_nets
.
append
((
int
(
family
),
ip
,
int
(
width
)))
for
line
in
routestr
.
strip
()
.
split
(
b
'
\n
'
):
(
family
,
ip
,
width
)
=
line
.
split
(
b
','
,
2
)
family
=
int
(
family
)
width
=
int
(
width
)
ip
=
ip
.
decode
(
"ASCII"
)
if
family
==
socket
.
AF_INET6
and
tcp_listener
.
v6
is
None
:
debug2
(
"Ignored auto net
%
d/
%
s/
%
d
\n
"
%
(
family
,
ip
,
width
))
if
family
==
socket
.
AF_INET
and
tcp_listener
.
v4
is
None
:
debug2
(
"Ignored auto net
%
d/
%
s/
%
d
\n
"
%
(
family
,
ip
,
width
))
else
:
debug2
(
"Adding auto net
%
d/
%
s/
%
d
\n
"
%
(
family
,
ip
,
width
))
fw
.
auto_nets
.
append
((
family
,
ip
,
width
))
# we definitely want to do this *after* starting ssh, or we might end
# up intercepting the ssh connection!
...
...
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