Do not fail if the system does not support IPv6

Fixes: #10318
Merge pull request #10319 from plastikos/issue-10318

Do not fail if the system does not support IPv6