mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
Use correct args to modify_interface_def https://github.com/webmin/webmin/issues/1818
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user