mirror of
https://github.com/IT4Change/gradido.git
synced 2026-01-13 08:24:46 +00:00
Merge pull request #466 from gradido/community_ipv6_localhost
Community ipv6 localhost
This commit is contained in:
commit
425d01263a
@ -65,8 +65,9 @@ Router::scope('/', function (RouteBuilder $routes) {
|
||||
if($entry == 'ElopageWebhook' || $entry == 'AppRequests') {
|
||||
return true;
|
||||
}
|
||||
if($request->clientIp() == '127.0.0.1' || $request->clientIp() == 'localhost' || $request->clientIp() == '') {
|
||||
return true;
|
||||
$allowedIpLocalhost = ['127.0.0.1', 'localhost', '', '::1'];
|
||||
if(in_array($clientIp, $allowedIpLocalhost)) {
|
||||
return true;
|
||||
}
|
||||
$allowedCaller = Configure::read('API.allowedCaller');
|
||||
$ipPerHost = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user