Skip to content

Commit 49eedfb

Browse files
ianlancetaylorgopherbot
authored andcommitted
net: use port 53 when checking for UDP routes
Using port 9 is weird and at least once triggered a suspicious activity alert. Fixes #67264 Change-Id: If4179f054829c175b9f3a51c3bc2a3ca4afa74b9 Reviewed-on: https://go-review.googlesource.com/c/go/+/584416 Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Damien Neil <[email protected]>
1 parent a878d3d commit 49eedfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/addrselect.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func sortByRFC6724withSrcs(addrs []IPAddr, srcs []netip.Addr) {
4242
// number is irrelevant.
4343
func srcAddrs(addrs []IPAddr) []netip.Addr {
4444
srcs := make([]netip.Addr, len(addrs))
45-
dst := UDPAddr{Port: 9}
45+
dst := UDPAddr{Port: 53}
4646
for i := range addrs {
4747
dst.IP = addrs[i].IP
4848
dst.Zone = addrs[i].Zone

0 commit comments

Comments
 (0)