mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 18:11:28 +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()
|
r.dnsClient.Start()
|
||||||
monitor.Finish()
|
monitor.Finish()
|
||||||
|
|
||||||
if C.IsAndroid && r.platformInterface == nil {
|
if r.needPackageManager && r.platformInterface == nil {
|
||||||
monitor.Start("initialize package manager")
|
monitor.Start("initialize package manager")
|
||||||
packageManager, err := tun.NewPackageManager(r)
|
packageManager, err := tun.NewPackageManager(r)
|
||||||
monitor.Finish()
|
monitor.Finish()
|
||||||
|
|
Loading…
Reference in a new issue