mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-08-07 14:25:17 +03:00
Update sing-box core
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"github.com/sagernet/sing-box/adapter"
|
||||
"github.com/sagernet/sing-tun"
|
||||
"github.com/sagernet/sing/common"
|
||||
E "github.com/sagernet/sing/common/exceptions"
|
||||
)
|
||||
|
||||
var _ Searcher = (*androidSearcher)(nil)
|
||||
@@ -16,6 +17,9 @@ type androidSearcher struct {
|
||||
}
|
||||
|
||||
func NewSearcher(config Config) (Searcher, error) {
|
||||
if config.PackageManager == nil {
|
||||
return nil, E.New("missing package manager")
|
||||
}
|
||||
return &androidSearcher{config.PackageManager}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user