mirror of
https://github.com/go-gost/x.git
synced 2026-10-19 16:16:32 +00:00
Replace 10 raw "ipv4"/"ipv6" string literals with preferIPv4/preferIPv6 constants, extract the duplicated fallback-condition check (repeated 4x across resolve and lookupCache) into shouldReturn, and fix a misleading doc comment on resolvePreference's default return.