Fix always create package manager

This commit is contained in:
世界 2024-06-10 00:03:01 +08:00
parent 085f603377
commit 74d662f7a3
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -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()