mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
net: update document on limitation of iprawsock on Windows
Fixed: #23209
Change-Id: I3bfe9f5192cbacf387386efda72f04eeec5ff3be
GitHub-Last-Rev: 660a62d139
GitHub-Pull-Request: golang/go#74857
Reviewed-on: https://go-review.googlesource.com/c/go/+/692895
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Sean Liao <sean@liao.dev>
This commit is contained in:
parent
ba9e1ddccf
commit
94b7d519bd
1 changed files with 6 additions and 0 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue