From 5c6e6f43d112941e077c87777a773bfc070a180d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 4 Feb 2024 18:54:56 +0100 Subject: relay: disable "permessage-deflate" websocket extension when option relay.network.compression is set to 0 --- src/plugins/relay/relay-websocket.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/relay/relay-websocket.c') diff --git a/src/plugins/relay/relay-websocket.c b/src/plugins/relay/relay-websocket.c index 2d136620b..fa14abca1 100644 --- a/src/plugins/relay/relay-websocket.c +++ b/src/plugins/relay/relay-websocket.c @@ -301,7 +301,8 @@ relay_websocket_parse_extensions (const char *extensions, { params = weechat_string_split (exts[i], ";", " ", 0, 0, &num_params); if (params && (num_params >= 1) - && (strcmp (params[0], "permessage-deflate") == 0)) + && (strcmp (params[0], "permessage-deflate") == 0) + && (weechat_config_integer (relay_config_network_compression) > 0)) { ws_deflate->enabled = 1; ws_deflate->server_context_takeover = 1; -- cgit v1.2.3