From 44024e8a5fbf65ff698ff251894f835de2d2cc71 Mon Sep 17 00:00:00 2001 From: Zuo Zongyuan Date: Tue, 13 Aug 2024 02:07:02 +0800 Subject: [PATCH] fix: correct the transport protocol check (#6576) --- src/node/utils/Settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/utils/Settings.ts b/src/node/utils/Settings.ts index 3936cf4e1..d798e10bf 100644 --- a/src/node/utils/Settings.ts +++ b/src/node/utils/Settings.ts @@ -837,7 +837,7 @@ exports.reloadSettings = () => { exports.skinName = 'colibris'; } - if (!exports.socketTransportProtocols.includes("websocket") || exports.socketTransportProtocols.includes("polling")) { + if (!exports.socketTransportProtocols.includes("websocket") || !exports.socketTransportProtocols.includes("polling")) { logger.warn("Invalid socketTransportProtocols setting. Please check out settings.json.template and update your settings.json. Falling back to the default ['websocket', 'polling']."); exports.socketTransportProtocols = ['websocket', 'polling']; }