3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #39055 from abbradar/reload-stop

firewall service: run stop commands in reload
This commit is contained in:
xeji 2018-05-05 22:13:15 +02:00 committed by GitHub
commit 76c8e5ea3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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