Do not fail if the system does not support IPv6

Fixes: #10318