Country Tag Helper–part 4


Now I want to see somewhere in order to prove it Ii s right. I choose because it is free – and can not beat free for free source.

I made github integration and modify the .csproj file accordingly to 

The result is at 

Also , I have to modify the code source to get the ip of the user :

string GetUserIP(ViewContext vc)
            StringValues headerFwd;
            if (ViewContext.HttpContext?.Request?.Headers?.TryGetValue("X-Forwarded-For", out headerFwd) ?? false)
                string rawValues = headerFwd.ToString();
                if (!string.IsNullOrWhiteSpace(rawValues))
                    return rawValues.Split(',')[0];

            return ViewContext.HttpContext?.Connection?.RemoteIpAddress?.ToString();


where ViewContext is

        public ViewContext ViewContext { get; set; }