Skip to content

Commit

Permalink
ip block modify
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jul 29, 2024
1 parent 342fb84 commit b83693f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions www/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Public;
namespace App;

use Windwalker\Core\Application\WebApplication;
use Windwalker\Core\Runtime\Runtime;
Expand All @@ -18,7 +18,9 @@

include __DIR__ . '/../etc/define.php';

Runtime::ipBlock(['dev'], env('DEV_ALLOW_IPS'));
if (Runtime::shouldBlock(['dev'], env('DEV_ALLOW_IPS'))) {
Runtime::forbidden();
}

Runtime::boot(WINDWALKER_ROOT, __DIR__);

Expand Down

0 comments on commit b83693f

Please sign in to comment.