Next virtual interface is always one greater than the last one

This commit is contained in:
Jamie Cameron
2023-11-07 17:56:02 -08:00
parent a1844d301d
commit 627a047028

View File

@@ -147,7 +147,7 @@ if (&has_command("ip")) {
$vifc{'edit'} = ($vifc{'name'} !~ /^ppp/);
$vifc{'index'} = scalar(@rv);
push(@rv, \%vifc);
$i++;
$i = $vn + 1;
}
}
}