From aef6d38726260ff387b32814fc5af1bf92cd867a Mon Sep 17 00:00:00 2001 From: Wheeler Law Date: Sat, 4 Mar 2023 23:08:21 -0600 Subject: [PATCH] Need to permit downloading --- pkg/flags/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/flags/flags.go b/pkg/flags/flags.go index 3589e45f0..d5dec1dc9 100644 --- a/pkg/flags/flags.go +++ b/pkg/flags/flags.go @@ -386,7 +386,7 @@ https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-g if err = nginx.ValidateGeoLite2DBEditions(); err != nil { return false, nil, err } - if nginx.MaxmindLicenseKey != "" || nginx.MaxmindMirror != "" { + if nginx.MaxmindLicenseKey != "" || nginx.MaxmindLicenseKeyFile != "" || nginx.MaxmindMirror != "" { klog.InfoS("downloading maxmind GeoIP2 databases") if err = nginx.DownloadGeoLite2DB(nginx.MaxmindRetriesCount, nginx.MaxmindRetriesTimeout); err != nil { klog.ErrorS(err, "unexpected error downloading GeoIP2 database")