Use broadcast func
This commit is contained in:
parent
22597d0117
commit
ecf2332eee
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user