Skip to content

Commit

Permalink
Fix setting of default gateway #1960
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Jul 22, 2023
1 parent ba25fba commit 2d900e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions net/debian-linux-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,8 @@ sub set_default_gateway
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]);
}
}

Expand Down Expand Up @@ -1112,7 +1113,8 @@ sub set_default_ipv6_gateway
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]);
}
}

Expand Down

0 comments on commit 2d900e8

Please sign in to comment.