Revert "Disable server-side functionality in custom ASF builds"

This reverts commit 42ceb6d413.
This commit is contained in:
Archi
2023-12-04 23:06:11 +01:00
parent e14d00b760
commit a7b1e01161
5 changed files with 1 additions and 56 deletions

View File

@@ -51,10 +51,6 @@ internal static class ArchiNet {
throw new InvalidOperationException(nameof(ASF.WebBrowser));
}
if (SharedInfo.BuildInfo.IsCustomBuild) {
return null;
}
Uri request = new(URL, $"/Api/Checksum/{version}/{variant}");
ObjectResponse<GenericResponse<string>>? response = await ASF.WebBrowser.UrlGetToJsonObject<GenericResponse<string>>(request, cancellationToken: cancellationToken).ConfigureAwait(false);
@@ -71,10 +67,6 @@ internal static class ArchiNet {
throw new ArgumentOutOfRangeException(nameof(steamID));
}
if (SharedInfo.BuildInfo.IsCustomBuild) {
return null;
}
(_, IReadOnlyCollection<ulong>? badBots) = await CachedBadBots.GetValue(ECacheFallback.FailedNow, cancellationToken).ConfigureAwait(false);
return badBots?.Contains(steamID);
@@ -84,7 +76,7 @@ internal static class ArchiNet {
ArgumentNullException.ThrowIfNull(bot);
ArgumentNullException.ThrowIfNull(webBrowser);
if (!bot.IsConnectedAndLoggedOn || SharedInfo.BuildInfo.IsCustomBuild) {
if (!bot.IsConnectedAndLoggedOn) {
return null;
}
@@ -188,10 +180,6 @@ internal static class ArchiNet {
throw new InvalidOperationException(nameof(ASF.WebBrowser));
}
if (SharedInfo.BuildInfo.IsCustomBuild) {
return (false, null);
}
Uri request = new(URL, "/Api/BadBots");
ObjectResponse<GenericResponse<ImmutableHashSet<ulong>>>? response = await ASF.WebBrowser.UrlGetToJsonObject<GenericResponse<ImmutableHashSet<ulong>>>(request, cancellationToken: cancellationToken).ConfigureAwait(false);