diff --git a/EduNetworkBuilder/NetworkDevice.cs b/EduNetworkBuilder/NetworkDevice.cs index d5ffeea..14de7f4 100644 --- a/EduNetworkBuilder/NetworkDevice.cs +++ b/EduNetworkBuilder/NetworkDevice.cs @@ -2832,7 +2832,12 @@ namespace EduNetworkBuilder NetworkCard tCard = null; NB_IPAddress DestAddr; string DHCPGW = ""; - foreach( NB_IPAddress ip in RouteTable) + + //Do not ping the zero string. Should not go anywhere + if (dest != null && dest.GetIPString == NB.ZeroIPString) + return new NB_IPAddress(NB.ZeroIPString); + + foreach ( NB_IPAddress ip in RouteTable) { if (ip.IsLocal(dest)) return new NB_IPAddress(ip.GetGateway.ToIpString());//We return the gateway