From e028f33a975d254817f42e8aca42a047b69a739c Mon Sep 17 00:00:00 2001 From: davidblum Date: Fri, 1 Apr 2016 17:06:27 -0600 Subject: [PATCH] Updated minAddress to respect startAt --- app/collins/util/IpAddress.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/collins/util/IpAddress.scala b/app/collins/util/IpAddress.scala index dbe3bc3b9..b9b34b341 100644 --- a/app/collins/util/IpAddress.scala +++ b/app/collins/util/IpAddress.scala @@ -99,7 +99,7 @@ case class IpAddressCalc(network: String, startAt: Option[String] = None) { def lastOctetInRange: Long = IpAddress.lastOctet(maxAddressAsLong) def startAddress: String = startAt.getOrElse(minAddress) def startAddressAsLong = IpAddress.toLong(startAddress) - def minAddress: String = subnetInfo.getLowAddress() + def minAddress: String = startAt.getOrElse(subnetInfo.getLowAddress()) def minAddressAsLong = IpAddress.toLong(minAddress) def maxAddress: String = subnetInfo.getHighAddress() def maxAddressAsLong = IpAddress.toLong(maxAddress)