mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
mod_websocket: Transfer IP address derived by mod_http
This commit is contained in:
parent
4cdc813fed
commit
2bd1debc3c
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue