mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
tiny code cleanup, no functional difference
This commit is contained in:
parent
57cd26226e
commit
8cf20a2c62
9
inxi
9
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue