another spectre ip fix

This commit is contained in:
Graham Knop 2007-09-07 17:21:33 +00:00
parent 77d5866741
commit 60cb86d9e0

View file

@ -168,7 +168,7 @@ sub www_spectreTest {
my $session = shift;
$session->http->setMimeType("text/plain");
$session->http->setCacheControl("none");
unless (isInSubnet($session->env->get("REMOTE_ADDR"), $session->config->get("spectreSubnets"))) {
unless (isInSubnet($session->env->getIp, $session->config->get("spectreSubnets"))) {
$session->errorHandler->security("make a Spectre workflow runner request, but we're only allowed to accept requests from ".join(",",@{$session->config->get("spectreSubnets")}).".");
return "subnet";
}