networking: fix wrong error message

This fixes bad error message when --ipv6 option has invalid value.