mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-14 03:44:16 +01:00
add geoip service for file shard matching
This commit is contained in:
parent
c6d3ac1c51
commit
53e96d9318
10 changed files with 162 additions and 10 deletions
|
|
@ -13,4 +13,5 @@ public class ControllerBase : Controller
|
|||
}
|
||||
|
||||
protected string MareUser => HttpContext.User.Claims.First(f => string.Equals(f.Type, MareClaimTypes.Uid, StringComparison.Ordinal)).Value;
|
||||
protected string Continent => HttpContext.User.Claims.FirstOrDefault(f => string.Equals(f.Type, MareClaimTypes.Continent, StringComparison.Ordinal))?.Value ?? "*";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue