mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-09 10:33:14 +00:00
Fix always create package manager
This commit is contained in:
parent
085f603377
commit
74d662f7a3
|
@ -531,7 +531,7 @@ func (r *Router) Start() error {
|
|||
r.dnsClient.Start()
|
||||
monitor.Finish()
|
||||
|
||||
if C.IsAndroid && r.platformInterface == nil {
|
||||
if r.needPackageManager && r.platformInterface == nil {
|
||||
monitor.Start("initialize package manager")
|
||||
packageManager, err := tun.NewPackageManager(r)
|
||||
monitor.Finish()
|
||||
|
|
Loading…
Reference in a new issue