Fixing issue with turning off secure cookies

This commit is contained in:
Viktor Klang 2010-11-04 12:51:20 +01:00
parent 53523ff907
commit 1c2c0b2e5d

View file

@ -76,7 +76,7 @@ object RemoteServer {
}
val REQUIRE_COOKIE = {
val requireCookie = config.getBool("akka.remote.server.require-cookie", true)
if (RemoteServer.SECURE_COOKIE.isEmpty) throw new ConfigurationException(
if (requireCookie && RemoteServer.SECURE_COOKIE.isEmpty) throw new ConfigurationException(
"Configuration option 'akka.remote.server.require-cookie' is turned on but no secure cookie is defined in 'akka.remote.secure-cookie'.")
requireCookie
}