From eee5331b284037c93b6778b05132be6804e14881 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 16 Jan 2023 18:38:20 -0800 Subject: [PATCH] Use correct args to modify_interface_def https://github.com/webmin/webmin/issues/1818 --- firewall/debian-linux-lib.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/firewall/debian-linux-lib.pl b/firewall/debian-linux-lib.pl index fc3e57d72..abb3b82b5 100755 --- a/firewall/debian-linux-lib.pl +++ b/firewall/debian-linux-lib.pl @@ -109,9 +109,11 @@ elsif ($has_new_debian_iptables) { local ($debpri) = grep { $_->[0] eq $pri->{'fullname'} } &net::get_interface_defs(); if ($debpri && !&started_at_boot()) { - push(@{$debpri->[3]}, + my ($name, $addrfam, $method, $options, $file,$line) = @$debpri; + push(@$options, [ "post-up", "ip${ipvx}tables-restore < $ipvx_save" ]); - &net::modify_interface_def(@$debpri); + &net::modify_interface_def($name, $addrfam, $method, $options, + 0, $file); } } else {