Fix interface monitor for android

This commit is contained in:
世界
2023-04-18 14:04:09 +08:00
parent be6138b6d1
commit 3627ffc27a
10 changed files with 342 additions and 29 deletions

6
box.go
View File

@@ -133,6 +133,12 @@ func New(options Options) (*Box, error) {
if err != nil {
return nil, err
}
if options.PlatformInterface != nil {
err = options.PlatformInterface.Initialize(ctx, router)
if err != nil {
return nil, E.Cause(err, "initialize platform interface")
}
}
preServices := make(map[string]adapter.Service)
postServices := make(map[string]adapter.Service)
if needClashAPI {