[fixes #46923183] detect if ipv6 is enabled