mirror of
https://github.com/bitwarden/server.git
synced 2025-04-21 13:05: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();
|
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