mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +00:00
ip endpoint
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user