From 2d79a69719f5224164491d030a82a5e36ab87091 Mon Sep 17 00:00:00 2001 From: Frank <5943122+fdie@users.noreply.github.com> Date: Thu, 4 Feb 2021 19:57:20 +0100 Subject: [PATCH] Fix PONG responses (#3515) Co-authored-by: Frank Diebolt --- src/ejabberd_websocket.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberd_websocket.erl b/src/ejabberd_websocket.erl index 97a8b954e..5eb5ab1a2 100644 --- a/src/ejabberd_websocket.erl +++ b/src/ejabberd_websocket.erl @@ -358,7 +358,7 @@ process_frame(#frame_info{unprocessed = none, | Recv], Send}; 9 -> % Ping - Frame = encode_frame(Unprocessed, 10), + Frame = encode_frame(Unmasked, 10), {FrameInfo3#frame_info{unmasked_msg = UnmaskedMsg}, [ping | Recv], [Frame | Send]}; 10 -> % Pong