get ip v4
This commit is contained in:
@@ -24,6 +24,9 @@ namespace PARR.API.Controllers.V1
|
||||
public IActionResult GetMyIp()
|
||||
{
|
||||
var ipAddress = clientService.GetClientIp();
|
||||
|
||||
//var ipV4 = ipAddress?.MapToIPv4();
|
||||
|
||||
var ip = ipAddress?.ToString();
|
||||
|
||||
return Ok(new Response<object>(new { ip }, true));
|
||||
|
||||
Reference in New Issue
Block a user