From 74d662f7a375ae65c9c3440195325fd25c6d1418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 10 Jun 2024 00:03:01 +0800 Subject: [PATCH] Fix always create package manager --- route/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/router.go b/route/router.go index 26344f01..08f80b68 100644 --- a/route/router.go +++ b/route/router.go @@ -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()