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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1002
_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to