mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix o(n^2) behaviour when listing interfaces http://virtualmin.com/node/31851
This commit is contained in:
@@ -113,7 +113,9 @@ while($f = readdir(CONF)) {
|
||||
$b->{'gateway'} = $conf{'GATEWAY'};
|
||||
$b->{'gateway6'} = $conf{'IPV6_DEFAULTGW'};
|
||||
$b->{'mtu'} = $conf{'MTU'};
|
||||
$b->{'partner'} = &get_teaming_partner($conf{'DEVICE'});
|
||||
if ($b->{'fullname'} =~ /^bond/) {
|
||||
$b->{'partner'} = &get_teaming_partner($conf{'DEVICE'});
|
||||
}
|
||||
my @values = split(/\s+/, $conf{'BONDING_OPTS'});
|
||||
foreach my $val (@values) {
|
||||
my ($k, $v) = split(/=/, $val, 2);
|
||||
|
||||
Reference in New Issue
Block a user