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
accb4ecc
Commit
accb4ecc
authored
Mar 18, 2020
by
rjharmon
Committed by
Brian May
Mar 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run all systemd notifications from main process
parent
ee36cc0d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
client.py
sshuttle/client.py
+5
-0
firewall.py
sshuttle/firewall.py
+0
-4
No files found.
sshuttle/client.py
View file @
accb4ecc
...
...
@@ -11,6 +11,7 @@ import sshuttle.helpers as helpers
import
sshuttle.ssnet
as
ssnet
import
sshuttle.ssh
as
ssh
import
sshuttle.ssyslog
as
ssyslog
import
sshuttle.sdnotify
as
sdnotify
from
sshuttle.ssnet
import
SockWrapper
,
Handler
,
Proxy
,
Mux
,
MuxWrapper
from
sshuttle.helpers
import
log
,
debug1
,
debug2
,
debug3
,
Fatal
,
islocal
,
\
resolvconf_nameservers
...
...
@@ -518,6 +519,8 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename,
# ignore its contents.
mux
.
got_routes
=
None
fw
.
start
()
sdnotify
.
send
(
sdnotify
.
ready
(),
sdnotify
.
status
(
'Connected'
))
mux
.
got_routes
=
onroutes
def
onhostlist
(
hostlist
):
...
...
@@ -798,6 +801,8 @@ def main(listenip_v6, listenip_v4,
# it's not our child anymore; can't waitpid
fw
.
p
.
returncode
=
0
fw
.
done
()
sdnotify
.
send
(
sdnotify
.
stop
())
finally
:
if
daemon
:
daemon_cleanup
()
sshuttle/firewall.py
View file @
accb4ecc
...
...
@@ -7,7 +7,6 @@ import platform
import
traceback
import
sshuttle.ssyslog
as
ssyslog
import
sshuttle.sdnotify
as
sdnotify
from
sshuttle.helpers
import
debug1
,
debug2
,
Fatal
from
sshuttle.methods
import
get_auto_method
,
get_method
...
...
@@ -220,8 +219,6 @@ def main(method_name, syslog):
user
)
stdout
.
write
(
'STARTED
\n
'
)
sdnotify
.
send
(
sdnotify
.
ready
(),
sdnotify
.
status
(
'Connected'
))
try
:
stdout
.
flush
()
...
...
@@ -247,7 +244,6 @@ def main(method_name, syslog):
break
finally
:
try
:
sdnotify
.
send
(
sdnotify
.
stop
())
debug1
(
'firewall manager: undoing changes.
\n
'
)
except
BaseException
:
debug2
(
'An error occurred, ignoring it.'
)
...
...
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