diff options
author | Jason Fesler <jfesler@Jasons-MacBook-Pro-2.local> | 2020-04-18 19:56:01 -0700 |
---|---|---|
committer | Jason Fesler <jfesler@Jasons-MacBook-Pro-2.local> | 2020-04-18 19:56:01 -0700 |
commit | 19057ff87f8f9ce3393cdfae75f13f4a4483e3f7 (patch) | |
tree | e80442a1301b9b5258182cd87d7f9a5b50545bd4 /mod_ip.c | |
parent | 3560dc3dd66191e0a79bb29ffdd9b2fdd9531ad6 (diff) | |
download | mod_ip-19057ff87f8f9ce3393cdfae75f13f4a4483e3f7.tar.gz mod_ip-19057ff87f8f9ce3393cdfae75f13f4a4483e3f7.zip |
Diffstat (limited to 'mod_ip.c')
-rw-r--r-- | mod_ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |