Skip to content

Commit 94b7d51

Browse files
aiskgopherbot
authored andcommitted
net: update document on limitation of iprawsock on Windows
Fixed: golang#23209 Change-Id: I3bfe9f5192cbacf387386efda72f04eeec5ff3be GitHub-Last-Rev: 660a62d GitHub-Pull-Request: golang#74857 Reviewed-on: https://go-review.googlesource.com/c/go/+/692895 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Sean Liao <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Damien Neil <[email protected]> Auto-Submit: Sean Liao <[email protected]>
1 parent ba9e1dd commit 94b7d51

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/net/iprawsock.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ import (
2525
// BUG(mikio): On JS and Plan 9, methods and functions related
2626
// to IPConn are not implemented.
2727

28+
// BUG: On Windows, raw IP sockets are restricted by the operating system.
29+
// Sending TCP data, sending UDP data with invalid source addresses,
30+
// and calling bind with TCP protocol don't work.
31+
//
32+
// See Winsock reference for details.
33+
2834
func ipAddrFromAddr(addr netip.Addr) *IPAddr {
2935
return &IPAddr{
3036
IP: addr.AsSlice(),

0 commit comments

Comments
 (0)