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)