[sr-dev] git:pd/websocket: modules/websocket: Corrected output of ws.dump MI command

Peter Dunkley peter.dunkley at crocodile-rcs.com
Sat Jun 30 21:36:39 CEST 2012


Module: sip-router
Branch: pd/websocket
Commit: b66e815ebe9ee9a5035abaf08c6e97a9c3281dcc
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b66e815ebe9ee9a5035abaf08c6e97a9c3281dcc

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date:   Sat Jun 30 20:36:00 2012 +0100

modules/websocket: Corrected output of ws.dump MI command

---

 modules/websocket/ws_conn.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/websocket/ws_conn.c b/modules/websocket/ws_conn.c
index e2795a0..fdaba36 100644
--- a/modules/websocket/ws_conn.c
+++ b/modules/websocket/ws_conn.c
@@ -321,11 +321,11 @@ static int add_node(struct mi_root *tree, ws_connection_t *wsc)
 
 	if (con)
 	{
-		src_proto = (con->rcv.proto== PROTO_TCP) ? "ws" : "wss";
+		src_proto = (con->rcv.proto== PROTO_WS) ? "ws" : "wss";
 		memset(src_ip, 0, IP6_MAX_STR_SIZE + 1);
 		ip_addr2sbuf(&con->rcv.src_ip, src_ip, IP6_MAX_STR_SIZE);
 
-		dst_proto = (con->rcv.proto == PROTO_TCP) ? "ws" : "wss";
+		dst_proto = (con->rcv.proto == PROTO_WS) ? "ws" : "wss";
 		memset(dst_ip, 0, IP6_MAX_STR_SIZE + 1);
 		ip_addr2sbuf(&con->rcv.dst_ip, src_ip, IP6_MAX_STR_SIZE);
 




More information about the sr-dev mailing list