summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-05-16 14:13:03 +0200
committerErich Eckner <git@eckner.net>2023-05-16 20:24:31 +0200
commit712a4aa946180f1e3a4c1fe1b7e7954ffa4d89df (patch)
tree4557cfcfc4d13cc07d50cce7c8bbbbf4b112e46e /index.php
parent4bc3bc10d166cbb7a25abc00b2960114716ed167 (diff)
downloadmocp-web-712a4aa946180f1e3a4c1fe1b7e7954ffa4d89df.tar.xz
fix address pattern
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
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);