From 56f67d17584d76d02e68167fa0c224c67b75cdb5 Mon Sep 17 00:00:00 2001 From: Sadzurami Date: Sun, 1 Sep 2024 17:43:52 +0300 Subject: [PATCH] fix: fixed cmlist filters with webCompatibilityMode enabled --- components/09-logon.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/09-logon.js b/components/09-logon.js index fff653c6..666560f4 100644 --- a/components/09-logon.js +++ b/components/09-logon.js @@ -337,6 +337,10 @@ class SteamUserLogon extends SteamUserMachineAuth { .filter(s => s.realm == 'steamglobal') .filter(s => ['netfilter', 'websockets'].includes(s.type)); + if (this.options.webCompatibilityMode) { + serverList = serverList.filter(s => s.type == 'websockets' && s.endpoint.endsWith(':443')); + } + // Disqualify any CMs that we've blacklisted let dqServerList = serverList.filter(s => !this._ttlCache.get(`CM_DQ_${s.type}_${s.endpoint}`)); if (dqServerList.length == 0) {