From 337316ba53a4a5d0bcfc4baed51e2800138cfe95 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Mon, 14 Mar 2022 21:47:21 +0800 Subject: [PATCH] [Fixed] rule-set of classical allow adding GEOIP --- rule/provider/parse.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rule/provider/parse.go b/rule/provider/parse.go index f0c094c6..20cdd557 100644 --- a/rule/provider/parse.go +++ b/rule/provider/parse.go @@ -82,6 +82,9 @@ func parseRule(tp, payload, target string, params []string) (C.Rule, error) { parsed, parseErr = RC.NewPort(payload, target, false, ruleExtra) case "PROCESS-NAME": parsed, parseErr = RC.NewProcess(payload, target, ruleExtra) + case "GEOIP": + noResolve := RC.HasNoResolve(params) + parsed, parseErr = RC.NewGEOIP(payload, target, noResolve, ruleExtra) default: parseErr = fmt.Errorf("unsupported rule type %s", tp) }