From 49eedfb4d07ab6c0d62041ba722dfe81e73d92ce Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 8 May 2024 15:46:40 -0700 Subject: [PATCH] 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 Reviewed-by: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Damien Neil --- src/net/addrselect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/addrselect.go b/src/net/addrselect.go index 4f07032c4a..caff09b377 100644 --- a/src/net/addrselect.go +++ b/src/net/addrselect.go @@ -42,7 +42,7 @@ func sortByRFC6724withSrcs(addrs []IPAddr, srcs []netip.Addr) { // number is irrelevant. func srcAddrs(addrs []IPAddr) []netip.Addr { srcs := make([]netip.Addr, len(addrs)) - dst := UDPAddr{Port: 9} + dst := UDPAddr{Port: 53} for i := range addrs { dst.IP = addrs[i].IP dst.Zone = addrs[i].Zone