From 0bb6af725e6372e7b38bc17efe371b42e3379f3e Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 18 Dec 2017 23:25:18 -0800 Subject: [PATCH] Fix restore command use for testing https://sourceforge.net/p/webadmin/bugs/5060/ --- firewall/firewall-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firewall/firewall-lib.pl b/firewall/firewall-lib.pl index e0ec64542..000b1e336 100755 --- a/firewall/firewall-lib.pl +++ b/firewall/firewall-lib.pl @@ -544,7 +544,7 @@ return undef; sub validate_iptables_config { my $out = &backquote_command( - "iptables-restore --test <$ipvx_save 2>&1"); + "ip${ipvx}tables-restore --test <$ipvx_save 2>&1"); return undef if (!$?); $out =~ s/Try\s.*more\s+information.*//; return $out;