Browse Source

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

Peter Dunkley 13 years ago
parent
commit
b66e815ebe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules/websocket/ws_conn.c

+ 2 - 2
modules/websocket/ws_conn.c

@@ -321,11 +321,11 @@ static int add_node(struct mi_root *tree, ws_connection_t *wsc)
 
 
 	if (con)
 	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);
 		memset(src_ip, 0, IP6_MAX_STR_SIZE + 1);
 		ip_addr2sbuf(&con->rcv.src_ip, src_ip, IP6_MAX_STR_SIZE);
 		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);
 		memset(dst_ip, 0, IP6_MAX_STR_SIZE + 1);
 		ip_addr2sbuf(&con->rcv.dst_ip, src_ip, IP6_MAX_STR_SIZE);
 		ip_addr2sbuf(&con->rcv.dst_ip, src_ip, IP6_MAX_STR_SIZE);