Exclude gVisor for unsupported arch

This commit is contained in:
世界
2022-07-17 11:16:13 +08:00
parent 4094c94971
commit cf845d946e
6 changed files with 77 additions and 5 deletions

17
route/iface_stub.go Normal file
View File

@@ -0,0 +1,17 @@
//go:build !linux && !windows
package route
import (
"os"
E "github.com/sagernet/sing/common/exceptions"
)
func NewNetworkUpdateMonitor(errorHandler E.Handler) (NetworkUpdateMonitor, error) {
return nil, os.ErrInvalid
}
func NewDefaultInterfaceMonitor(networkMonitor NetworkUpdateMonitor, callback DefaultInterfaceUpdateCallback) (DefaultInterfaceMonitor, error) {
return nil, os.ErrInvalid
}