github.com/yaling888/clash@v1.53.0/transport/wireguard/bind_default.go (about) 1 //go:build !windows && !nogvisor 2 3 package wireguard 4 5 import ( 6 "syscall" 7 8 "golang.zx2c4.com/wireguard/conn" 9 ) 10 11 func NewDefaultBind( 12 controlFns []func(network, address string, c syscall.RawConn) error, 13 interfaceName string, 14 reserved []byte, 15 ) conn.Bind { 16 return NewStdNetBind(controlFns, interfaceName, reserved) 17 }