Network Interface moving to IPAddress functions

This commit is contained in:
Tim Young 2020-12-08 15:26:11 -07:00
parent 49151e7c55
commit 8a906bad5f

View File

@ -281,7 +281,7 @@ namespace EduNetworkBuilder
NetworkCard nic = HD.NicFromID(AttachedToHostNic); NetworkCard nic = HD.NicFromID(AttachedToHostNic);
if(nic != null && nic.GetNicType != NicType.port && nic.GetNicType != NicType.wport) if(nic != null && nic.GetNicType != NicType.port && nic.GetNicType != NicType.wport)
tPacket.TsourceIP = myIP; tPacket.TsourceIP = myIP;
if(tPacket.TsourceIP == null || tPacket.TsourceIP.GetIPString == NB.ZeroIPString) if(tPacket.TsourceIP == null || tPacket.TsourceIP.IsZeroString())
tPacket.TsourceIP = myIP; tPacket.TsourceIP = myIP;
if (What == VLANTagType.Forbidden) if (What == VLANTagType.Forbidden)