fix operator precedence

pull/802/head
Thibault Duplessis 2015-08-17 18:20:40 +02:00
parent ed13e0ff8e
commit f21f5835d0
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ final class Firewall(
private val ipRegex = """^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$""".r
private def validIp(ip: String) =
ipRegex matches ip && ip != "127.0.0.1" && ip != "0.0.0.0"
(ipRegex matches ip) && ip != "127.0.0.1" && ip != "0.0.0.0"
private type IP = Vector[Byte]