Don't show IPv6 in the list if IPv6 is disabled.

Requires alterator-net-functions >= 1.3.1.
This commit is contained in:
Mikhail Efremov 2014-08-08 20:51:06 +04:00
parent 2da6f2efa3
commit 056f0267cc

View File

@ -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()