Add tun platform options

This commit is contained in:
世界 committed 2023-02-28 19:02:27 +08:00
1 parent ed50257735
commit 7834d6bca7
12 files changed
+213 -26

No files matched your search

+2 -1
View File
@@ -4,13 +4,14 @@ import (
"io"
"github.com/sagernet/sing-box/common/process"
"github.com/sagernet/sing-box/option"
"github.com/sagernet/sing-tun"
"github.com/sagernet/sing/common/control"
)
type Interface interface {
AutoDetectInterfaceControl() control.Func
OpenTun(options tun.Options) (tun.Tun, error)
OpenTun(options tun.Options, platformOptions option.TunPlatformOptions) (tun.Tun, error)
process.Searcher
io.Writer
}