fix operator precedence
parent
ed13e0ff8e
commit
f21f5835d0
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue