Commit 2c871816 authored by Max Lv's avatar Max Lv

Add new lines for remote ACL

parent 450bde53
......@@ -94,15 +94,14 @@ class Acl {
val result = new StringBuilder()
if (urls.nonEmpty) {
result.append(urls.mkString("\n"))
result.append("\n")
if (network) {
result.append("#NETWORK_ACL_BEGIN\n")
result.append("\n#NETWORK_ACL_BEGIN\n")
try {
urls.foreach((url: String) => result.append(Source.fromURL(url).mkString))
} catch {
case e: IOException => // ignore
}
result.append("#NETWORK_ACL_END\n")
result.append("\n#NETWORK_ACL_END\n")
}
}
if (result.isEmpty) {
......
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