mihomo/rules/provider/patch_android.go
wwqgtxx 09be5cbc99
Some checks are pending
Trigger CMFA Update / trigger-CMFA-update (push) Waiting to run
feat: tun support auto-redirect, route-address-set and route-exclude-address-set
2024-06-17 22:04:51 +08:00

28 lines
351 B
Go

//go:build android && cmfa
package provider
import "time"
var (
suspended bool
)
type UpdatableProvider interface {
UpdatedAt() time.Time
}
func (rp *ruleSetProvider) UpdatedAt() time.Time {
return rp.Fetcher.UpdatedAt
}
func (rp *ruleSetProvider) Close() error {
rp.Fetcher.Destroy()
return nil
}
func Suspend(s bool) {
suspended = s
}