Fix a crash when pinging 0.0.0.0. Thanks Samuel for noticing that.
This commit is contained in:
parent
0676a56352
commit
a2bebb6eb0
@ -113,6 +113,7 @@ namespace EduNetworkBuilder
|
|||||||
|
|
||||||
public IPAddress(string ip)
|
public IPAddress(string ip)
|
||||||
{
|
{
|
||||||
|
if (ip == null) ip = NB.ZeroIPString;
|
||||||
myType = IPAddressType.ip;
|
myType = IPAddressType.ip;
|
||||||
_ip = ip.ParseIp();
|
_ip = ip.ParseIp();
|
||||||
var mySplitVal = ip.Split('/');
|
var mySplitVal = ip.Split('/');
|
||||||
|
Loading…
Reference in New Issue
Block a user