Added comment and a static field for localhost.

This commit is contained in:
WolfGaming
2014-12-07 10:30:57 +00:00
parent f191babec8
commit 20fe03b6c1
3 changed files with 6 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Net;
using OpenRA.Graphics;
using OpenRA.Mods.Common.Widgets;
using OpenRA.Network;
@@ -224,7 +225,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
{
if (ip == null)
return "Unknown Host";
if (ip == "127.0.0.1")
if (ip == IPAddress.Loopback.ToString())
return "Local Host";
return ip;
}