From 6484ba4d4439dc469b9bdaf8dd363e578b63d022 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,