fix bug trying to randomize the octets 0.0.0.0.

This commit is contained in:
Tim Young 2017-08-29 15:44:42 -05:00
parent 2b944891e2
commit 54ddd2a2af

View File

@ -276,6 +276,7 @@ namespace EduNetworkBuilder
public string randomizeOctects(string original) public string randomizeOctects(string original)
{ {
string[] parts = original.Split('.'); string[] parts = original.Split('.');
if (original == NB.ZeroIPString) return original;
bool done = false; bool done = false;
List<string> toRandomize = new List<string>(parts); List<string> toRandomize = new List<string>(parts);
List<string> randomized = new List<string>(); List<string> randomized = new List<string>();