From 9b371656666fd1dad8dd0c9e9365ec08fff09b90 Mon Sep 17 00:00:00 2001 From: gVisor bot 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,