Fix ping
This commit is contained in:
parent
85e063cb3a
commit
4897217d7b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user