From 54ddd2a2af07d835c0c2f356d1ac3124bb351c39 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Tue, 29 Aug 2017 15:44:42 -0500 Subject: [PATCH] fix bug trying to randomize the octets 0.0.0.0. --- EduNetworkBuilder/IPAddress.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/EduNetworkBuilder/IPAddress.cs b/EduNetworkBuilder/IPAddress.cs index 01e0ea9..fa1f0fd 100644 --- a/EduNetworkBuilder/IPAddress.cs +++ b/EduNetworkBuilder/IPAddress.cs @@ -276,6 +276,7 @@ namespace EduNetworkBuilder public string randomizeOctects(string original) { string[] parts = original.Split('.'); + if (original == NB.ZeroIPString) return original; bool done = false; List toRandomize = new List(parts); List randomized = new List();