Skip to content

Commit

Permalink
Merge pull request #432 from davidblum/respect_startAddress
Browse files Browse the repository at this point in the history
Updated minAddress to respect startAt
  • Loading branch information
william-richard committed Apr 5, 2016
2 parents e2ad483 + e028f33 commit 1af1322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/collins/util/IpAddress.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1af1322

Please sign in to comment.