another small oversight, failed to properly assign array separators for ipv6 extra ips.

This commit is contained in:
Harald Hope 2017-05-31 16:58:16 -07:00
parent 8cf20a2c62
commit 7b3b51e97a

7
inxi
View file

@ -8205,10 +8205,15 @@ get_networking_local_ip_data()
ifIpV6 = ifIpV6 "^" addIpV6 ifIpV6 = ifIpV6 "^" addIpV6
} }
} }
if ( ipExtV6 != "" ){ if (addExtV6 != "" )
if ( ipExtV6 == "" ){
ipExtV6 = addExtV6
}
else {
ipExtV6 = ipExtV6 "^" addExtV6 ipExtV6 = ipExtV6 "^" addExtV6
} }
} }
}
# slice off the digits that are sometimes tacked to the end of the address, # slice off the digits that are sometimes tacked to the end of the address,
# like: /64 or /24 # like: /64 or /24
sub(/\/[0-9]+/, "", ifIp) sub(/\/[0-9]+/, "", ifIp)