Make gVisor optional

This commit is contained in:
世界 2022-09-15 11:19:31 +08:00
parent 057dd738a7
commit 0e80d729a3
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
11 changed files with 23 additions and 26 deletions

View file

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