diff --git a/src/admin/Bootstrap.DataAccess/Helper/DictHelper.cs b/src/admin/Bootstrap.DataAccess/Helper/DictHelper.cs index 7c1b99f3..15dc1bf1 100644 --- a/src/admin/Bootstrap.DataAccess/Helper/DictHelper.cs +++ b/src/admin/Bootstrap.DataAccess/Helper/DictHelper.cs @@ -97,7 +97,7 @@ namespace Bootstrap.DataAccess if (!string.IsNullOrEmpty(name) && !name.Equals("None", StringComparison.OrdinalIgnoreCase)) { var url = RetrieveLocaleIPSvrUrl(name); - op.Locator = DefaultIPLocatorProvider.CreateLocator(name); + op.LocatorName = name; op.Url = string.IsNullOrEmpty(url) ? string.Empty : $"{url}{op.IP}"; op.Period = RetrieveLocaleIPSvrCachePeriod() * 60 * 1000; } diff --git a/src/client/Bootstrap.Client.DataAccess/Helper/DictHelper.cs b/src/client/Bootstrap.Client.DataAccess/Helper/DictHelper.cs index 4059eb66..f9e463c9 100644 --- a/src/client/Bootstrap.Client.DataAccess/Helper/DictHelper.cs +++ b/src/client/Bootstrap.Client.DataAccess/Helper/DictHelper.cs @@ -124,7 +124,7 @@ namespace Bootstrap.Client.DataAccess if (!string.IsNullOrEmpty(name) && !name.Equals("None", StringComparison.OrdinalIgnoreCase)) { var url = RetrieveLocaleIPSvrUrl(name); - op.Locator = DefaultIPLocatorProvider.CreateLocator(name); + op.LocatorName = name; op.Url = string.IsNullOrEmpty(url) ? string.Empty : $"{url}{op.IP}"; if (int.TryParse(RetrieveLocaleIPSvrCachePeriod(), out var period) && period > 0) op.Period = period * 60 * 1000; }