mirror of
https://github.com/bitwarden/server.git
synced 2025-04-12 00:28:11 -05:00
ip endpoint
This commit is contained in:
parent
9f919920bc
commit
3aaaac3c5f
@ -18,5 +18,15 @@ namespace Bit.Api.Controllers
|
||||
{
|
||||
return new VersionResponseModel();
|
||||
}
|
||||
|
||||
[HttpGet("~/ip")]
|
||||
public JsonResult Ip()
|
||||
{
|
||||
return new JsonResult(new
|
||||
{
|
||||
Ip = HttpContext.Connection?.RemoteIpAddress?.ToString(),
|
||||
Headers = HttpContext.Request?.Headers,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user