From 1a8aa231c82ff4e4665bb03e443c8a212e78a2c1 Mon Sep 17 00:00:00 2001 From: Theta Date: Sat, 10 Oct 2026 12:22:31 -0500 Subject: [PATCH] Fix false positives in official server detection This fixes an issue where modded regions which has a domain ending in "among.us" would be falsely flagged as an official region. One example is "moddedamong.us", adding the extra "." to the start stops this (since region domains are matchmaker-(region).among.us) --- Reactor/Patches/Miscellaneous/CustomServersPatch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Reactor/Patches/Miscellaneous/CustomServersPatch.cs b/Reactor/Patches/Miscellaneous/CustomServersPatch.cs index 6232fba..247e08b 100644 --- a/Reactor/Patches/Miscellaneous/CustomServersPatch.cs +++ b/Reactor/Patches/Miscellaneous/CustomServersPatch.cs @@ -12,7 +12,7 @@ internal static class CustomServersPatch { private static bool IsCurrentServerOfficial() { - const string Domain = "among.us"; + const string Domain = ".among.us"; return ServerManager.Instance.CurrentRegion?.TryCast() is { } regionInfo && regionInfo.PingServer.EndsWith(Domain, StringComparison.Ordinal) &&