mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-04 20:37:37 +03:00
Fix always create package manager
This commit is contained in:
parent
085f603377
commit
74d662f7a3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue