Code cleanup (#188)
This commit is contained in:
parent
df53c16620
commit
010fd9402a
185 changed files with 1052 additions and 1271 deletions
|
|
@ -115,7 +115,7 @@ namespace Server.Misc
|
|||
IPHostEntry iphe = Dns.GetHostEntry(addr);
|
||||
|
||||
if (iphe.AddressList.Length > 0)
|
||||
outValue = iphe.AddressList[iphe.AddressList.Length - 1];
|
||||
outValue = iphe.AddressList[^1];
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue