another spectre ip fix
This commit is contained in:
parent
77d5866741
commit
60cb86d9e0
1 changed files with 1 additions and 1 deletions
|
|
@ -168,7 +168,7 @@ sub www_spectreTest {
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
$session->http->setMimeType("text/plain");
|
$session->http->setMimeType("text/plain");
|
||||||
$session->http->setCacheControl("none");
|
$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")}).".");
|
$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";
|
return "subnet";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue