From c31597b99eefe7619e5531147a9d83f5d257816d Mon Sep 17 00:00:00 2001 From: Jigar-f Date: Tue, 17 Dec 2024 13:00:20 +0530 Subject: [PATCH] Call geolookup Refresh before getting country. --- internalsdk/ios/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internalsdk/ios/config.go b/internalsdk/ios/config.go index 0b5e9880f..f1a428128 100644 --- a/internalsdk/ios/config.go +++ b/internalsdk/ios/config.go @@ -141,9 +141,8 @@ func (cf *configurer) Configure(userID int, proToken string, refreshProxies bool if frontingErr := setupFronting(); frontingErr != nil { log.Errorf("Unable to configure fronting, sticking with embedded configuration: %v", err) } else { - log.Debug("Refreshing geolookup") - go func() { + go geolookup.Refresh() cf.uc.Country = geolookup.GetCountry(1 * time.Minute) log.Debugf("Successful geolookup: country %s", cf.uc.Country) cf.uc.AllowProbes = global.FeatureEnabled(