Add handshake interface support for gVisor UDP

This commit is contained in:
世界
2023-07-23 14:18:36 +08:00
parent 0a68b9f1d8
commit aa8760b454
11 changed files with 156 additions and 61 deletions

11
stack_lwip_stub.go Normal file
View File

@@ -0,0 +1,11 @@
//go:build !with_lwip
package tun
import E "github.com/sagernet/sing/common/exceptions"
func NewLWIP(
options StackOptions,
) (Stack, error) {
return nil, E.New(`LWIP is not included in this build, rebuild with -tags with_lwip`)
}