From 2cfe0eb1659fe3e1e625c4612df22f9805c43a6e Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 13 Feb 2014 12:37:50 +0100 Subject: [PATCH] use input parameter to feed iptables-restore --- PVE/Firewall.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Firewall.pm b/PVE/Firewall.pm index 19314ad..8d56ab0 100644 --- a/PVE/Firewall.pm +++ b/PVE/Firewall.pm @@ -152,7 +152,7 @@ sub iptables_restore { my $cmdlist = join("\n", @ruleset); - run_command("echo '$cmdlist' | /sbin/iptables-restore -n", outfunc => sub {}); + run_command("/sbin/iptables-restore -n", input => $cmdlist, outfunc => sub {}); } sub iptables_addrule { -- 2.39.2