mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
no allocation
This commit is contained in:
1 parent
8b63af4f12
commit
65405ea539
1 file changed
+9
-1
+9
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user