compare correct ip for spectre requests
This commit is contained in:
parent
38425432f0
commit
d03a377c11
2 changed files with 2 additions and 1 deletions
|
|
@ -14,6 +14,7 @@
|
|||
- fix package importing
|
||||
- remove caching behavior, will always send content to the client if they ask
|
||||
- fix: can't turn off Is Group Admin setting
|
||||
- Check correct IP for spectre connections
|
||||
|
||||
7.4.5
|
||||
- fix: Apostrophy incorrectly escaped as double quote in some places
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ sub www_spectreGetSiteData {
|
|||
$session->http->setMimeType("text/json");
|
||||
$session->http->setCacheControl("none");
|
||||
my %siteData = ();
|
||||
if (!isInSubnet($session->env->get("REMOTE_ADDR"), $session->config->get("spectreSubnets"))) {
|
||||
if (!isInSubnet($session->env->getIp, $session->config->get("spectreSubnets"))) {
|
||||
$session->errorHandler->security("make a Spectre workflow data load request, but we're only allowed to accept requests from "
|
||||
.join(",",@{$session->config->get("spectreSubnets")}).".");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue