From 4b393620397e0cab73df85942502854f5d8b7568 Mon Sep 17 00:00:00 2001 From: metacubex Date: Wed, 17 Aug 2022 00:33:03 +0800 Subject: [PATCH] chore: Skip initial "lan" rules that load geoip --- rules/common/geoip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/common/geoip.go b/rules/common/geoip.go index aeddcbdb..0a7670e1 100644 --- a/rules/common/geoip.go +++ b/rules/common/geoip.go @@ -71,7 +71,7 @@ func (g *GEOIP) GetRecodeSize() int { } func NewGEOIP(country string, adapter string, noResolveIP bool) (*GEOIP, error) { - if !C.GeodataMode { + if !C.GeodataMode || strings.EqualFold(country, "LAN") { geoip := &GEOIP{ Base: &Base{}, country: country,