From e52a77ff84ec319ea060af26cc301d4486395c00 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 18 Feb 2021 14:34:38 +0100 Subject: mod_http: Fix trusted proxies check (thanks buildbot) is_trusted_proxy() is only in trunk, I dun goofed when I rebased 8603011e51fe from trunk. --- plugins/mod_http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_http.lua') 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 -- cgit v1.2.3