Still more GeoIP debugging

This commit is contained in:
Rick Falkvinge
2015-05-21 16:37:32 +02:00
parent 7f3720c8ca
commit 5ebebdb0ad
+2 -2
View File
@@ -62,10 +62,10 @@ namespace Swarmops.Logic.Support
// All of this can be faked trivially by the client, so you can't rely on it for any kind of security.
string forwardedIps =
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
HttpContext.Current.Request.Headers["X-Forwarded-For"];
string directIp =
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
HttpContext.Current.Request.UserHostAddress;
if (!string.IsNullOrEmpty (forwardedIps))
{