/** * @brief get all the elements to diplay in the about.json * * @return a model */ public string About() { var ip = _accessor.HttpContext?.Connection?.RemoteIpAddress?.ToString(); if (ip.Contains("::ffff:")) { ip = ip.Replace("::ffff:", ""); } if (ip == "::1") { ip = GetLocalIp(); } /*var ip = _accessor.HttpContext?.Connection?.LocalIpAddress?.AddressFamily.ToString();*/ /*var ip = Request.HttpContext?.Connection?.RemoteIpAddress.ToString();*/ return(_model.GetAboutData(ip)); }