Skip to content

Commit

Permalink
Merge pull request #2991 from ZeroK-RTS/master
Browse files Browse the repository at this point in the history
update live
  • Loading branch information
Licho1 authored Aug 21, 2024
2 parents a1f442e + 96309a1 commit e447a0e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/.idea.Zero-K/.idea/projectSettingsUpdater.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Shared/PlasmaShared/GlobalConst.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static void SetMode(ModeType newMode)
public const string BomberIcon = "/img/fleets/neutral.png";
public const string WarpIcon = "/img/warpcore.png";

public const bool VpnCheckEnabled = false;
public const bool VpnCheckEnabled = true;

public const double EurosToKudos = 10.0;
public const string TeamEmail = "Zero-K team <[email protected]>";
Expand Down
2 changes: 1 addition & 1 deletion Zero-K.info/Controllers/GithubController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public async Task<ActionResult> Hook()
dynamic commits = payload.commits;
foreach (dynamic commit in commits)
{
sb.AppendFormat("\n {0} <{1}>", commit.message, commit.url);
sb.AppendFormat("\n~~ ~~\n{0} <{1}>", commit.message, commit.url);
count++;
}
if (count > 0) text = $"[{payload.repository.name}] {payload.sender.login} has pushed {count} commits: {sb}";
Expand Down
2 changes: 1 addition & 1 deletion ZkLobbyServer/LoginChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public async Task<LoginCheckerResponse> DoLogin(Login login, string ip, List<ulo
userID,
installID);

if (!acc.HasVpnException && GlobalConst.VpnCheckEnabled) if (HasVpn(ip, acc, db)) return BlockLogin("Connection using proxy or VPN is not allowed! (You can ask for exception)", acc, ip, userID, installID);
if (!acc.HasVpnException && GlobalConst.VpnCheckEnabled && !acc.SteamID.HasValue) if (HasVpn(ip, acc, db)) return BlockLogin("Connection using proxy or VPN is not allowed! (You can ask for exception)", acc, ip, userID, installID);

return ret;
}
Expand Down

0 comments on commit e447a0e

Please sign in to comment.