Update routes.php

This commit is contained in:
einhornimmond 2021-05-25 14:39:32 +02:00 committed by GitHub
parent ada873f80e
commit 2f23d64e61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ Router::scope('/', function (RouteBuilder $routes) {
return true;
}
$allowedIpLocalhost = ['127.0.0.1', 'localhost', '', '::1'];
if(true == in_array($clientIp, $allowedIpLocalhost)) {
if(in_array($clientIp, $allowedIpLocalhost)) {
return true;
}
$allowedCaller = Configure::read('API.allowedCaller');