Skip to content

Commit

Permalink
fix: fixed cmlist filters with webCompatibilityMode enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadzurami committed Sep 1, 2024
1 parent 705a610 commit 56f67d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/09-logon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 56f67d1

Please sign in to comment.