fix(android): normalize IPv6 host input in manual gateway URLs#64440
fix(android): normalize IPv6 host input in manual gateway URLs#64440MayankSharma-ops wants to merge 1 commit into
Conversation
Greptile SummaryThis PR fixes a bug where bare IPv6 literals (e.g. Confidence Score: 5/5Safe to merge — the fix is correct, well-scoped, and the new tests pass through the full resolution path. The normalization logic correctly handles all three cases (already-bracketed, raw IPv6, and non-IPv6), and the downstream parser already strips brackets before storing the host. No P0/P1 issues found; all remaining observations are P2 or lower. No files require special attention. Reviews (1): Last reviewed commit: "fix(android): normalize IPv6 host input ..." | Re-trigger Greptile |
Summary
Why
Manual gateway configuration accepted raw IPv6 literals, but URLs require IPv6 hosts to be enclosed in brackets. Without normalization, inputs like ::1 produced invalid URLs (e.g., http://::1:18789), causing connection failures.
Testing