MFC r270836:

Use ipv6_prefer when at least one ifconfig_IF_ipv6 is configured.
This commit is contained in:
Hiroki Sato 2014-10-09 23:40:08 +00:00
parent dc7e1ee0ff
commit b9673d4be6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=272864

View File

@ -75,6 +75,8 @@ ip6addrctl_start()
else
if checkyesno ipv6_activate_all_interfaces; then
ip6addrctl_prefer_ipv6
elif [ -n "$(list_vars ifconfig_\*_ipv6)" ]; then
ip6addrctl_prefer_ipv6
else
ip6addrctl_prefer_ipv4
fi