echoip/iputil
ns 7f4bee21c2
refactor(geo): drop pointless zero-value defensive checks
Country/City/ASN had ~11 'if x != "" { y = x }' wrappers around
fields whose targets were already zero-valued. Replaced with
unconditional assignment and cmp.Or for genuine fallback chains
(Country -> RegisteredCountry). Kept guards that prevent real
panics (nil pointer, NaN, slice index).
2026-05-07 07:09:35 +00:00
..
geo refactor(geo): drop pointless zero-value defensive checks 2026-05-07 07:09:35 +00:00
iputil.go security: refuse to dial non-public addresses in LookupPort 2026-05-07 07:06:54 +00:00
iputil_test.go security: refuse to dial non-public addresses in LookupPort 2026-05-07 07:06:54 +00:00