From: AN Long Date: Tue, 12 Aug 2025 12:36:54 +0000 (+0000) Subject: net: update document on limitation of iprawsock on Windows X-Git-Tag: go1.26rc1~994 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=94b7d519bd;p=gostls13.git net: update document on limitation of iprawsock on Windows Fixed: #23209 Change-Id: I3bfe9f5192cbacf387386efda72f04eeec5ff3be GitHub-Last-Rev: 660a62d139dda21fcaea1e95394ca38521c7f00a GitHub-Pull-Request: golang/go#74857 Reviewed-on: https://go-review.googlesource.com/c/go/+/692895 LUCI-TryBot-Result: Go LUCI Reviewed-by: Sean Liao Reviewed-by: Cherry Mui Reviewed-by: Damien Neil Auto-Submit: Sean Liao --- diff --git a/src/net/iprawsock.go b/src/net/iprawsock.go index 80a80fef7d..26134d7e76 100644 --- a/src/net/iprawsock.go +++ b/src/net/iprawsock.go @@ -25,6 +25,12 @@ import ( // BUG(mikio): On JS and Plan 9, methods and functions related // to IPConn are not implemented. +// BUG: On Windows, raw IP sockets are restricted by the operating system. +// Sending TCP data, sending UDP data with invalid source addresses, +// and calling bind with TCP protocol don't work. +// +// See Winsock reference for details. + func ipAddrFromAddr(addr netip.Addr) *IPAddr { return &IPAddr{ IP: addr.AsSlice(),