no allocation

This commit is contained in:
Gurge44 committed 2026-08-15 13:52:55 +02:00
1 parent 8b63af4f12
commit 65405ea539
1 file changed
+9 -1
+9 -1
View File
@@ -5113,7 +5113,15 @@ public static class Utils
if (ip.Contains("allofus"))
{
name = $"AOU-{ip.Split('.')[0].ToUpper()}";
name = "AOU-";
for (var i = 0; i < ip.Length; i++)
{
char c = ip[i];
if (c == '.') break;
name += char.ToUpper(c);
}
return name;
}