mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix setting of default gateway https://github.com/webmin/webmin/issues/1960
This commit is contained in:
@@ -1077,7 +1077,8 @@ foreach my $iface (grep { $_->[1] eq 'inet' } @ifaces) {
|
||||
if ($iface->[0] eq $_[1]) {
|
||||
push(@{$iface->[3]}, [ 'gateway', $_[0] ]);
|
||||
}
|
||||
&modify_interface_def(@$iface);
|
||||
&modify_interface_def($iface->[0], $iface->[1], $iface->[2],
|
||||
$iface->[3], 0, $iface->[4]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1112,7 +1113,8 @@ foreach my $iface (grep { $_->[1] eq 'inet6' } @ifaces) {
|
||||
if ($iface->[0] eq $_[1] && $_[0]) {
|
||||
push(@{$iface->[3]}, [ 'gateway', $_[0] ]);
|
||||
}
|
||||
&modify_interface_def(@$iface);
|
||||
&modify_interface_def($iface->[0], $iface->[1], $iface->[2],
|
||||
$iface->[3], 0, $iface->[4]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user