diff options
author | Erich Eckner <git@eckner.net> | 2023-05-16 14:13:03 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-05-16 20:24:31 +0200 |
commit | 712a4aa946180f1e3a4c1fe1b7e7954ffa4d89df (patch) | |
tree | 4557cfcfc4d13cc07d50cce7c8bbbbf4b112e46e /index.php | |
parent | 4bc3bc10d166cbb7a25abc00b2960114716ed167 (diff) | |
download | mocp-web-712a4aa946180f1e3a4c1fe1b7e7954ffa4d89df.tar.xz |
fix address pattern
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |