Rename module

This commit is contained in:
世界 2026-05-17 20:08:42 +08:00
parent f853bfc5c5
commit 75d0f348d5
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
20 changed files with 33 additions and 46 deletions

View file

@ -20,9 +20,7 @@ import (
"golang.org/x/net/ipv6"
)
var (
_ Bind = (*StdNetBind)(nil)
)
var _ Bind = (*StdNetBind)(nil)
// StdNetBind implements Bind for all platforms. While Windows has its own Bind
// (see bind_windows.go), it may fall back to StdNetBind.
@ -210,10 +208,8 @@ func (s *StdNetBind) getMessages() *[]ipv6.Message {
return s.msgsPool.Get().(*[]ipv6.Message)
}
var (
// If compilation fails here these are no longer the same underlying type.
_ ipv6.Message = ipv4.Message{}
)
// If compilation fails here these are no longer the same underlying type.
var _ ipv6.Message = ipv4.Message{}
type batchReader interface {
ReadBatch([]ipv6.Message, int) (int, error)

View file

@ -15,9 +15,8 @@ import (
"sync/atomic"
"unsafe"
"github.com/sagernet/wireguard-go/conn/winrio"
"golang.org/x/sys/windows"
"golang.zx2c4.com/wireguard/conn/winrio"
)
const (