Use broadcast func

This commit is contained in:
Tim Young 2020-12-07 13:54:39 -07:00
parent 22597d0117
commit ecf2332eee

View File

@ -2119,7 +2119,7 @@ namespace EduNetworkBuilder
//It was destined for here, or it is starting from scratch. See if we need to route it.
if (tPacket.destIP == null) tPacket.destIP = new NB_IPAddress(NB.ZeroIPString);
NB_IPAddress dest = DestinationFromIP(tPacket.destIP); //Get the IP, or GW
if(dest.GetIPString == NB.ZeroIPString && tPacket.destIP.GetIPString != NB.BroadcastIPString)
if(dest.GetIPString == NB.ZeroIPString && !tPacket.destIP.IsBroadcast())
{
//No gateway set and no route...
string errString = string.Format(NB.Translate("ND_NoRouteStr"), hostname, tPacket.destIP.GetIPString);