mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 20:52:15 +08:00
[fix]code
This commit is contained in:
parent
d4cc650633
commit
06e9243fda
@ -2,6 +2,7 @@ package provider
|
|||||||
|
|
||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"github.com/Dreamacro/clash/component/trie"
|
"github.com/Dreamacro/clash/component/trie"
|
||||||
"github.com/Dreamacro/clash/constant"
|
"github.com/Dreamacro/clash/constant"
|
||||||
)
|
)
|
||||||
@ -107,6 +108,9 @@ type RuleProvider interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
parse = func(ruleType, rule string, params []string) (constant.Rule, error) {
|
||||||
|
return nil, errors.New("unimplemented function")
|
||||||
|
}
|
||||||
ruleProviders = map[string]*RuleProvider{}
|
ruleProviders = map[string]*RuleProvider{}
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -118,7 +122,7 @@ type ruleSetProvider struct {
|
|||||||
count int
|
count int
|
||||||
DomainRules *trie.DomainTrie
|
DomainRules *trie.DomainTrie
|
||||||
IPCIDRRules *trie.IpCidrTrie
|
IPCIDRRules *trie.IpCidrTrie
|
||||||
ClassicalRules []C.Rule
|
ClassicalRules []constant.Rule
|
||||||
}
|
}
|
||||||
|
|
||||||
type RuleSetProvider struct {
|
type RuleSetProvider struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user