blob: 6370a7d9887e5b660913f3660038eef7240d911c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- functions.h.orig 2004-09-20 02:50:46 UTC
+++ functions.h
@@ -14,7 +14,11 @@
static const char *extract_remote_address(request_rec *r, char *a)
{
+#if AP_MODULE_MAGIC_AT_LEAST(20111130,0)
+ return r->useragent_ip;
+#else
return r->connection->remote_ip;
+#endif
}
static const char *extract_local_address(request_rec *r, char *a) __attribute__((unused));
|