mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix
This commit is contained in:
1 parent
f0c9bd2906
commit
e8bcbe77fa
1 file changed
+8
-3
@@ -8,13 +8,18 @@ namespace EHR.Patches;
|
||||
[HarmonyPatch]
|
||||
internal static class CustomServersPatch
|
||||
{
|
||||
public static bool Prepare()
|
||||
{
|
||||
return !OperatingSystem.IsAndroid();
|
||||
}
|
||||
|
||||
private static bool IsCurrentServerOfficial()
|
||||
{
|
||||
const string Domain = "among.us";
|
||||
const string domain = "among.us";
|
||||
|
||||
return ServerManager.Instance.CurrentRegion?.TryCast<StaticHttpRegionInfo>() is { } regionInfo &&
|
||||
regionInfo.PingServer.EndsWith(Domain, StringComparison.Ordinal) &&
|
||||
regionInfo.Servers.All(serverInfo => serverInfo.Ip.EndsWith(Domain, StringComparison.Ordinal));
|
||||
regionInfo.PingServer.EndsWith(domain, StringComparison.Ordinal) &&
|
||||
regionInfo.Servers.All(serverInfo => serverInfo.Ip.EndsWith(domain, StringComparison.Ordinal));
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(AuthManager._CoConnect_d__4), "MoveNext")]
|
||||
|
||||
Reference in new issue
Block a user