diff --git a/inxi b/inxi index 1a90cfb..6da31c3 100755 --- a/inxi +++ b/inxi @@ -8154,21 +8154,16 @@ get_networking_local_ip_data() ifMask = $4 } } + # bsds end ip with %em1 (% + interface name) if ( $0 ~ /inet6.*%/ ){ + sub(/%.*/,"",$2) if ( $2 ~ /^fe80/ ) { - sub(/%.*/,"",$2) addIpV6 = $2 } else if ( $2 ~ /^fec0/ || $2 ~ /^fc00/ ) { - sub(/%.*/,"",$2) addExtV6 = "ss~" $2 } -# else if ( $2 ~ /^2/ ) { -# sub(/%.*/,"",$2) -# addExtV6 = "sg~" $2 -# } else { - sub(/%.*/,"",$2) addExtV6 = "sg~" $2 } }