ports/www/mod_log_sql/files/patch-functions.h
Bernard Spil d6f880d222 www/mod_log_sql: Fix PID > 65535
* PID > 65535 when 'LogSQLCreateTables On' [1]
 * Fix WWW address
 * 2 suffix (for Apache 2) is redundant, remove

PR:		243793 [1]
Submitted by:	Tommy P <tommyhp2 gmail com>
2020-08-06 15:09:17 +00:00

14 lines
374 B
C

--- 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));