mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-21 01:38:48 +02:00
Arrange systemd notification to clarify the meaning
* this spot in the lifecycle is precisely when we know that the remote server is running AND that the local firewall-control daemon is started.
This commit is contained in:
parent
accb4ecc97
commit
9b10df21b6
@ -518,11 +518,14 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename,
|
|||||||
# set --auto-nets, we might as well wait for the message first, then
|
# set --auto-nets, we might as well wait for the message first, then
|
||||||
# ignore its contents.
|
# ignore its contents.
|
||||||
mux.got_routes = None
|
mux.got_routes = None
|
||||||
fw.start()
|
serverready()
|
||||||
sdnotify.send(sdnotify.ready(), sdnotify.status('Connected'))
|
|
||||||
|
|
||||||
mux.got_routes = onroutes
|
mux.got_routes = onroutes
|
||||||
|
|
||||||
|
def serverready():
|
||||||
|
fw.start()
|
||||||
|
sdnotify.send(sdnotify.ready(), sdnotify.status('Connected'))
|
||||||
|
|
||||||
def onhostlist(hostlist):
|
def onhostlist(hostlist):
|
||||||
debug2('got host list: %r\n' % hostlist)
|
debug2('got host list: %r\n' % hostlist)
|
||||||
for line in hostlist.strip().split():
|
for line in hostlist.strip().split():
|
||||||
|
Loading…
Reference in New Issue
Block a user