platform: Export NeedWIFIState for Android

This commit is contained in:
世界 2024-02-16 13:06:34 +08:00
parent bca0b86549
commit 5583e01c99
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
3 changed files with 15 additions and 6 deletions

View file

@ -33,6 +33,8 @@ type Router interface {
RuleSet(tag string) (RuleSet, bool)
NeedWIFIState() bool
Exchange(ctx context.Context, message *mdns.Msg) (*mdns.Msg, error)
Lookup(ctx context.Context, domain string, strategy dns.DomainStrategy) ([]netip.Addr, error)
LookupDefault(ctx context.Context, domain string) ([]netip.Addr, error)