New feature to get the real source IP when kamailio websocket is behind a load balancer transmitting X-Forwarded-For and/or X-Real-IP headers: Detect HTTP headers X-Forwarded-For and X-Real-IP during the Websocket handshake. The pseudo variables $ws_real_src_ip is populated during ws_handshake() or null if not set. $ws_real_src_ip is indeed readonly. You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1002
-- Commit Summary --
* websocket: X-Forwarded-For and X-Real-IP support
-- File Changes --
M src/modules/websocket/websocket.c (40) M src/modules/websocket/ws_conn.h (2) M src/modules/websocket/ws_handshake.c (51)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1002.patch https://github.com/kamailio/kamailio/pull/1002.diff