From d4a9c6bcc35ebf3164a286c73c189e57fbfcac8f Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Fri, 26 Nov 2021 00:27:00 +0800 Subject: [PATCH] [fix]code --- constant/provider/interface.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/constant/provider/interface.go b/constant/provider/interface.go index 7f1bda42..08cd1926 100644 --- a/constant/provider/interface.go +++ b/constant/provider/interface.go @@ -2,6 +2,7 @@ package provider import "C" import ( + "errors" "github.com/Dreamacro/clash/component/trie" "github.com/Dreamacro/clash/constant" ) @@ -107,6 +108,9 @@ type RuleProvider interface { } var ( + parse = func(ruleType, rule string, params []string) (constant.Rule, error) { + return nil, errors.New("unimplemented function") + } ruleProviders = map[string]*RuleProvider{} ) @@ -118,7 +122,7 @@ type ruleSetProvider struct { count int DomainRules *trie.DomainTrie IPCIDRRules *trie.IpCidrTrie - ClassicalRules []C.Rule + ClassicalRules []constant.Rule } type RuleSetProvider struct {