mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
Handle new format for secondary IPs
This commit is contained in:
@ -112,7 +112,7 @@ if (&has_command("ip")) {
|
||||
my $i = 0;
|
||||
my $bn = $ifc{'name'};
|
||||
while($l =~ s/\sinet\s+([0-9\.]+)\/(\d+).*?\s\Q$bn\E:(\d+)// ||
|
||||
$l =~ s/\sinet\s+([0-9\.]+)\/(\d+).*?secondary.*?\s\Q$bn\E//) {
|
||||
$l =~ s/\sinet\s+([0-9\.]+)\/(\d+).*?(?:secondary|dynamic|global).*?\s\Q$bn\E//) {
|
||||
my %vifc;
|
||||
my $vn = defined($3) ? $3 : $i;
|
||||
$vifc{'name'} = $ifc{'name'};
|
||||
|
Reference in New Issue
Block a user