aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_http.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua
index 0a365274..a1873e70 100644
--- a/plugins/mod_http.lua
+++ b/plugins/mod_http.lua
@@ -174,7 +174,7 @@ end
module:wrap_object_event(server._events, false, function (handlers, event_name, event_data)
local request = event_data.request;
- if request and is_trusted_proxy(request.conn:ip()) then
+ if request and trusted_proxies[request.conn:ip()] then
-- Not included in eg http-error events
request.ip = get_ip_from_request(request);
end