On Illumos-based systems, such as OpenIndiana and OmniOS, the assumption that “the default zone ID of 0 can be omitted for the default scope” is incorrect. As a result, getaddrinfo("fe80::1%0", ...)
returns the EAI_NONAME
error instead of resolving to “fe80::1”.
See: https://www.illumos.org/man/3SOCKET/getaddrinfo.
This PR removes the problematic code introduced in #19951.