Skip to content

Commit

Permalink
fix: this is the 2344589040th time i've had to deal with this uws issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanger committed Nov 4, 2024
1 parent 9cbab00 commit 3b43d99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ if (isMainThread) {
removePunishment(ip);
}
response = { success: false, message: punishment.punishmentType, reason: punishment.reason, reportID: punishment.reportId };
} else if (await isVPNCheck(ip)) {
response = { success: false, message: "vpn" };
} else {
const teamID = maxTeamSize !== TeamSize.Solo && new URLSearchParams(req.getQuery()).get("teamID"); // must be here or it causes uWS errors
if (teamID) {
if (await isVPNCheck(ip)) {
response = { success: false, message: "vpn" };
} else if (teamID) {
const team = customTeams.get(teamID);
if (team?.gameID !== undefined) {
const game = games[team.gameID];
Expand Down

0 comments on commit 3b43d99

Please sign in to comment.