OSDN Git Service

BugTrack/2178 counter plugin: Ignore REMOTE_ADDR
authorumorigu <umorigu@gmail.com>
Sat, 11 Dec 2021 06:13:38 +0000 (15:13 +0900)
committerumorigu <umorigu@gmail.com>
Sat, 11 Dec 2021 06:13:38 +0000 (15:13 +0900)
 define('PLUGIN_COUNTER_IGNORE_REMOTE_ADDR', 0);

* 0: FALSE (default)
* 1: TRUE (Ignore REMOTE_ADDR environment variable)

plugin/counter.inc.php

index 2f7cf07..f4fbeee 100644 (file)
@@ -10,8 +10,8 @@
 
 // Counter file's suffix
 define('PLUGIN_COUNTER_SUFFIX', '.count');
-// Ignore REMOTE_ADDR : TRUE for reverse proxy / load balancer environment
-define('PLUGIN_COUNTER_IGNORE_REMOTE_ADDR', FALSE);
+// Ignore REMOTE_ADDR : FALSE(0) or TRUE(1) for reverse proxy / load balancer environment
+define('PLUGIN_COUNTER_IGNORE_REMOTE_ADDR', 0);
 // Use Database (1) or not (0)
 define('PLUGIN_COUNTER_USE_DB', 0);
 // Database Connection setting