Commit 0c5361a4 authored by Dominik Hebeler's avatar Dominik Hebeler

fixed missing argument

parent e2c970c8
......@@ -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\/",
],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment