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:
parent
54ddd2a2af
commit
41ae808c39
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user