This commit is contained in:
Tim Young 2015-11-19 15:58:50 -05:00
parent 85e063cb3a
commit 4897217d7b

View File

@ -682,7 +682,7 @@ namespace EduNetworkBuilder
if (ItemClickedOn == null) return; //we do not have something chosen to ping from if (ItemClickedOn == null) return; //we do not have something chosen to ping from
ToolStripMenuItem Pressed = (ToolStripMenuItem)sender; ToolStripMenuItem Pressed = (ToolStripMenuItem)sender;
string itemname = Pressed.Text; string itemname = Pressed.Text;
string dest = Regex.Replace(itemname, NB.Translate("_Ping "), ""); string dest = Regex.Replace(itemname, NB.Translate("_Ping") + " ", "");
IPAddress destination; IPAddress destination;
destination = myNetwork.DNSLookup(ItemClickedOn, dest); destination = myNetwork.DNSLookup(ItemClickedOn, dest);
if(destination == null || destination.GetIPString == NB.ZeroIPString) if(destination == null || destination.GetIPString == NB.ZeroIPString)