mod_websocket: Transfer IP address derived by mod_http

This commit is contained in:
Kim Alvefur 2018-03-15 17:52:11 +01:00
parent 4cdc813fed
commit 2bd1debc3c

View file

@ -256,6 +256,10 @@ function handle_request(event)
local session = sessions[conn];
-- Use upstream IP if a HTTP proxy was used
-- See mod_http and #540
session.ip = request.ip;
session.secure = consider_websocket_secure or session.secure;
session.open_stream = session_open_stream;