Just in case we have an address like 8.8.8.8 and we try to randomize that. Make sure there is a difference we can randomize.

This commit is contained in:
Tim Young 2017-08-29 15:47:08 -05:00
parent 54ddd2a2af
commit 41ae808c39
1 changed files with 1 additions and 0 deletions

View File

@ -277,6 +277,7 @@ namespace EduNetworkBuilder
{
string[] parts = original.Split('.');
if (original == NB.ZeroIPString) return original;
if (parts.Count() == 4 && parts[0] == parts[1] && parts[1] == parts[2] && parts[2] == parts[3]) return original;
bool done = false;
List<string> toRandomize = new List<string>(parts);
List<string> randomized = new List<string>();