mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-05 00:03:27 +08:00

"socket.has_ipv6" is basically useless - it tells you python has been *compiled* with ipv6 support. Instead just try ipv6 and if that fails with EAFNOSUPPORT (checking the actual errno), try v4. Yes, I explicitly do not care to test this on python2. Fixes #3857