Commit Graph

2 Commits

Author SHA1 Message Date
Codescribe a430372bab fix: bracket IPv6 addresses in VPN DNS upstream config
upstreamConfigFor() used strings.Contains(":") to decide whether to
append ":53", which always evaluates true for IPv6 addresses. This left
bare addresses like "2a0d:6fc0:9b0:3600::1" without brackets or port,
causing net.Dial to reject with "too many colons in address".

Use net.JoinHostPort() which handles IPv6 bracketing automatically,
producing "[2a0d:6fc0:9b0:3600::1]:53".
2026-04-17 16:59:31 +07:00
Codescribe 0a7bbb99e8 feat: add VPN DNS split routing 2026-03-10 17:18:23 +07:00