This should also be conditional on networking.enableIPv6 being set. Or maybe that should be an assertion.