浏览代码

modules/websocket: Fixes to WS and WSS message sending

Peter Dunkley 13 年之前
父节点
当前提交
86362e52c1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      modules/websocket/ws_frame.c

+ 2 - 2
modules/websocket/ws_frame.c

@@ -231,7 +231,7 @@ static int encode_and_send_ws_frame(ws_frame_t *frame, conn_close_t conn_close)
 		}
 	}
 
-	if (dst.proto == PROTO_TCP)
+	if (dst.proto == PROTO_WS)
 	{
 		if (unlikely(tcp_disable))
 		{
@@ -241,7 +241,7 @@ static int encode_and_send_ws_frame(ws_frame_t *frame, conn_close_t conn_close)
 		}		
 	}
 #ifdef USE_TLS
-	else if (dst.proto == PROTO_TLS)
+	else if (dst.proto == PROTO_WSS)
 	{
 		if (unlikely(tls_disable))
 		{