mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 04:42:22 +08: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 New Issue
Block a user