Fixed issue #374 with adding a range of IP addresses

This commit is contained in:
Feodor 2012-09-24 10:22:22 -07:00
parent 19b546333e
commit 190a02758a
3 changed files with 4 additions and 4 deletions

View file

@ -988,7 +988,7 @@ namespace WebsitePanel.EnterpriseServer
if (startExternalIP.V6 != startInternalIP.V6 && (startExternalIP.V6 != endExternalIP.V6 && endExternalIP != null)) throw new NotSupportedException("All IP addresses must be either V4 or V6.");
int i = 0;
long step = (endExternalIP < startExternalIP) ? -1 : 1;
long step = ((endExternalIP - startExternalIP) > 0) ? 1 : -1;
while (true)
{