[sr-dev] git:master: core: try to detect ipv6 addresses only when USE_IPV6 is used