Skip to content

Commit

Permalink
Updated minAddress to respect startAt
Browse files Browse the repository at this point in the history
  • Loading branch information
davidblum committed Apr 1, 2016
1 parent 88db542 commit e028f33
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 e028f33

Please sign in to comment.