mirror of
https://github.com/Empostor/Empostor.git
synced 2026-10-19 15:51:39 +00:00
Change IpGeolocationService to english
This commit is contained in:
1 parent
1d7252aa36
commit
8767bcbd4d
1 file changed
+1
-1
@@ -11,7 +11,7 @@ namespace Empostor.Server.Service.Shared
|
||||
{
|
||||
public class IpGeolocationService
|
||||
{
|
||||
private const string ApiUrl = "http://ip-api.com/json/{0}?lang=zh-CN&fields=status,country,regionName,city";
|
||||
private const string ApiUrl = "http://ip-api.com/json/{0}?lang=en&fields=status,country,regionName,city";
|
||||
private static readonly TimeSpan CacheTtl = TimeSpan.FromHours(24);
|
||||
|
||||
private readonly ConcurrentDictionary<IPAddress, (string Location, DateTime Expiry)> _cache = new();
|
||||
|
||||
Reference in new issue
Block a user