Skip to content
Snippets Groups Projects
Commit 0c5361a4 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed missing argument

parent e2c970c8
No related branches found
No related tags found
2 merge requests!1895Development,!1793Development
......@@ -5,6 +5,7 @@ namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Redis;
use Jenssegers\Agent\Agent;
use Illuminate\Http\Request;
use Cache;
class BrowserVerification
......@@ -89,7 +90,7 @@ class BrowserVerification
->render());
}
public static function logBrowserverification() {
public static function logBrowserverification(Request $request) {
$fail2banEnabled = config("metager.metager.fail2ban_enabled");
if(empty($fail2banEnabled) || !$fail2banEnabled || !env("fail2banurl", false) || !env("fail2banuser") || !env("fail2banpassword")){
return;
......
<?php
return [
"browserverification_enabled" => false,
"browserverification_enabled" => true,
"browserverification_whitelist" => [
"w3m\/",
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment