Commit 4457dd5
committed
Enforce bracket notation for IPv6 bootstrap resolvers
The isIPAndPort validation function was accepting ambiguous IPv6
addresses without brackets (e.g., "2606:4700:4700::1113:53"). The
ExtractHostAndPort function would treat the last colon as a port
separator, incorrectly splitting the IPv6 address.
This fix enforces that IPv6 addresses must use bracket notation
(e.g., "[2606:4700:4700::1113]:53") to prevent ambiguity and ensure
correct parsing.1 parent e9f8f55 commit 4457dd5
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
777 | 782 | | |
778 | 783 | | |
779 | 784 | | |
0 commit comments