From ac8634bf7526464d1bd64a67c1a09716f45d2f83 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 8 Feb 2015 10:34:49 -0800 Subject: [PATCH] Actually, the inet6 addr: format is only used by the ifconfig command --- net/linux-lib.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/linux-lib.pl b/net/linux-lib.pl index 3ab324e41..166df9cf3 100755 --- a/net/linux-lib.pl +++ b/net/linux-lib.pl @@ -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);