Commit 1f6d6bbd authored by Mygod's avatar Mygod

Update Acl.scala to be compliant with acl.c

parent c25433e2
...@@ -58,8 +58,8 @@ class Acl { ...@@ -58,8 +58,8 @@ class Acl {
bypass = false bypass = false
lazy val bypassSubnets = new mutable.SortedList[Subnet]() lazy val bypassSubnets = new mutable.SortedList[Subnet]()
lazy val proxySubnets = new mutable.SortedList[Subnet]() lazy val proxySubnets = new mutable.SortedList[Subnet]()
var hostnames: mutable.SortedList[String] = proxyHostnames var hostnames: mutable.SortedList[String] = bypassHostnames
var subnets: mutable.SortedList[Subnet] = proxySubnets var subnets: mutable.SortedList[Subnet] = bypassSubnets
for (line <- value.getLines()) (line.indexOf('#') match { for (line <- value.getLines()) (line.indexOf('#') match {
case -1 => line case -1 => line
case index => line.substring(0, index) // trim comments case index => line.substring(0, index) // trim comments
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment