From 4ea2d460f440d0328be40653843584d121bb39b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 7 Sep 2023 12:54:45 +0800 Subject: [PATCH] Fix router close --- route/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/router.go b/route/router.go index 65bd981c..cb1bd366 100644 --- a/route/router.go +++ b/route/router.go @@ -521,7 +521,7 @@ func (r *Router) Close() error { return E.Cause(err, "close dns transport[", i, "]") }) } - if r.geositeReader != nil { + if r.geoIPReader != nil { r.logger.Trace("closing geoip reader") err = E.Append(err, common.Close(r.geoIPReader), func(err error) error { return E.Cause(err, "close geoip reader")