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")