Fix a crash when pinging 0.0.0.0. Thanks Samuel for noticing that.

This commit is contained in:
Tim Young 2017-06-29 09:59:01 -05:00
parent 0676a56352
commit a2bebb6eb0
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ namespace EduNetworkBuilder
public IPAddress(string ip)
{
if (ip == null) ip = NB.ZeroIPString;
myType = IPAddressType.ip;
_ip = ip.ParseIp();
var mySplitVal = ip.Split('/');