Add new lines for remote ACL

This commit is contained in:
Max Lv
2017-08-08 07:45:56 +08:00
parent 450bde5305
commit 2c8718163a
@@ -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) {