X-Real-IP support and Varnish PURGE config options
X-Real-IP for core functionality Global config define REVERSE_PROXY_X_HEADERS Config host and port for varnish PURGE config option to specify PURGE protocol exception in curl purge now shows error code ipv6 x-real-ip addresses are now validated properly X-Forwarded-Proto enabled by define
This commit is contained in:
@@ -15,7 +15,7 @@ class LogNet extends Extension
|
||||
if ($this->count < 10) {
|
||||
// TODO: colour based on event->priority
|
||||
$username = ($user && $user->name) ? $user->name : "Anonymous";
|
||||
$str = sprintf("%-15s %-10s: %s", $_SERVER['REMOTE_ADDR'], $username, $event->message);
|
||||
$str = sprintf("%-15s %-10s: %s", get_real_ip(), $username, $event->message);
|
||||
$this->msg($str);
|
||||
} elseif ($this->count == 10) {
|
||||
$this->msg('suppressing flood, check the web log');
|
||||
|
Reference in New Issue
Block a user