[sr-dev] [kamailio/kamailio] websocket: X-Forwarded-For and X-Real-IP support (#1002)

Michael Ricordeau notifications at github.com
Mon Feb 20 01:48:12 CET 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170219/09e5c3ac/attachment.html>


More information about the sr-dev mailing list