mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
After validating every resolved IP, the guarded dial connected only to ips[0] — an allowlisted dual-stack or round-robin host whose first record was down hard-failed despite reachable vetted alternatives. The dial now tries each vetted address in order (all records still validated before any dial: one poisoned private record refuses the whole request). Also removes the redundant rejectPrivateAddrs pre-resolves (initial request + redirect hop): the guarded dial is the authoritative check and every path flows through it, so the pre-resolve only cost an extra DNS round trip while re-opening the rebinding TOCTOU it was meant to close. Folds the W3-2-adjacent double-resolve cleanup from the plan. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>