Actually, the inet6 addr: format is only used by the ifconfig command

This commit is contained in:
Jamie Cameron
2015-02-08 10:34:49 -08:00
parent 5a8ae25d02
commit ac8634bf75

View File

@ -103,8 +103,7 @@ elsif (&has_command("ip")) {
}
my (@address6, @netmask6, @scope6);
while($l =~ s/inet6\s+(\S+)\/(\d+)\s+scope\s+(\S+)//i ||
$l =~ s/inet6\s+addr:\s+(\S+)\/(\d+)\s+Scope:(\S+)//i) {
while($l =~ s/inet6\s+(\S+)\/(\d+)\s+scope\s+(\S+)//i) {
local ($address6, $netmask6, $scope6) = ($1, $2, $3);
push(@address6, $address6);
push(@netmask6, $netmask6);