Resolve scope IDs using IPv6 sockets

On certain systems (Solaris), resolving the scope id from an interface
name can only be done on AF_INET-domain sockets. While we're here,
simplify the test while we're here, since there's only one address.

Also note that the loopback interface name is not stable across OSs.
BSDs and Solaris use `lo0` whilst Linux uses `l0`.
a032fd01e8Stephen Gregoratto committed on 9/24/2021, 5:50:18 PM· committed by Andrew Kelleyparent1e7009a
1 file changedLine totals unavailable