forked from mirrors/nixpkgs
Merge pull request #39055 from abbradar/reload-stop
firewall service: run stop commands in reload
This commit is contained in:
commit
76c8e5ea3b
|
@ -242,6 +242,9 @@ let
|
|||
|
||||
# Don't allow traffic to leak out until the script has completed
|
||||
ip46tables -A INPUT -j nixos-drop
|
||||
|
||||
${cfg.extraStopCommands}
|
||||
|
||||
if ${startScript}; then
|
||||
ip46tables -D INPUT -j nixos-drop 2>/dev/null || true
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue