Skip to content

Commit

Permalink
Merge pull request #490 from Sadzurami/fix-webcompability-mode
Browse files Browse the repository at this point in the history
Fix for `webCompatibilityMode`
  • Loading branch information
DoctorMcKay authored Sep 3, 2024
2 parents 705a610 + 56f67d1 commit c3139f8
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 c3139f8

Please sign in to comment.