Justins fix to network card

This commit is contained in:
Tim Young 2019-02-23 11:03:28 -06:00
parent d1e3a4dda9
commit 720a45aa81

View File

@ -701,6 +701,15 @@ namespace EduNetworkBuilder
} }
} }
} }
if (nf != null && nf.myIP != null && nf.myIP.GetIPString != NB.ZeroIPString)
{
//If the source IP is empty then it originated from here. We set the source to be us
if (tPacket.sourceIP == null || tPacket.sourceIP.GetIPString == NB.ZeroIPString)
{
tPacket.sourceIP = nf.myIP;
WhereFrom.StoreOutgoingPacketInfo(tPacket); //the packet is not yet tunneled
}
}
if (nf.isLocal(tPacket.OutboundIP, false)) if (nf.isLocal(tPacket.OutboundIP, false))
{ {
//We need to tell the original packet that it is inside another packet //We need to tell the original packet that it is inside another packet