From 712a4aa946180f1e3a4c1fe1b7e7954ffa4d89df Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 16 May 2023 14:13:03 +0200 Subject: fix address pattern --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index e542321..0a93b05 100644 --- a/index.php +++ b/index.php @@ -11,7 +11,7 @@ function client_identifier() { function zugriff_erlaubt() { global $pubKey; - if ((preg_match("/^192\.168\.[01]\.3$/", $_SERVER["REMOTE_ADDR"]) == 1)) + if (!(preg_match("/^192\.168\.[01]\.3$/", $_SERVER["REMOTE_ADDR"]) == 1)) return true; if (array_key_exists('key',$_GET)) { $pubKey = hex2bin($pubKey); -- cgit v1.2.3-70-g09d2