summaryrefslogtreecommitdiff
path: root/mod_ip.c
diff options
context:
space:
mode:
authorJason Fesler <jfesler@Jasons-MacBook-Pro-2.local>2020-04-18 19:56:01 -0700
committerJason Fesler <jfesler@Jasons-MacBook-Pro-2.local>2020-04-18 19:56:01 -0700
commit19057ff87f8f9ce3393cdfae75f13f4a4483e3f7 (patch)
treee80442a1301b9b5258182cd87d7f9a5b50545bd4 /mod_ip.c
parent3560dc3dd66191e0a79bb29ffdd9b2fdd9531ad6 (diff)
downloadmod_ip-19057ff87f8f9ce3393cdfae75f13f4a4483e3f7.tar.gz
mod_ip-19057ff87f8f9ce3393cdfae75f13f4a4483e3f7.zip
RIP workingHEADmaster
Diffstat (limited to 'mod_ip.c')
-rw-r--r--mod_ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod_ip.c b/mod_ip.c
index be41481..21baaaa 100644
--- a/mod_ip.c
+++ b/mod_ip.c
@@ -370,13 +370,13 @@ gen_output (request_rec * r, struct mod_ip_request_t *formdata)
RIP = escape_string (r, (char *) apr_table_get (r->headers_in, "X-Real-IP"));
VIA = escape_string (r, (char *) apr_table_get (r->headers_in, "Via"));
- if (strlen(VIA)>0)
+ if (strlen(RIP)>0)
myip = RIP;
if (!myip)
myip = "0.0.0.0 undefined";
if (formdata->testip)
myip = formdata->testip;
-
+
/* If Teredo or 6to4, don't do ASN lookups. The data will always show *some* ISP, but it isn't ours.*/
if ((strncmp(myip,"2001:0:",7)==NULL) || (strncmp(myip,"2002:",5)==NULL)) {
formdata->getasn=0;