Don't show IPv6 in the list if IPv6 is disabled.
Requires alterator-net-functions >= 1.3.1.
This commit is contained in:
parent
2da6f2efa3
commit
056f0267cc
@ -291,7 +291,9 @@ write_computer_name()
|
|||||||
list_ipv()
|
list_ipv()
|
||||||
{
|
{
|
||||||
write_enum_item "4" "`_ "IPv4"`"
|
write_enum_item "4" "`_ "IPv4"`"
|
||||||
write_enum_item "6" "`_ "IPv6"`"
|
if is_ipv6_enabled; then
|
||||||
|
write_enum_item "6" "`_ "IPv6"`"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
list_eth_cached()
|
list_eth_cached()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user