ipv6: Fix incorrect disable_ipv6 behavior