diff options
author | Erich Eckner <git@eckner.net> | 2023-05-18 10:18:36 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2023-05-18 10:18:36 +0200 |
commit | 8fe68ea70d29e87dd6d925bfd8cf14aeb5a4b131 (patch) | |
tree | c689ac427ee68473f9a1ddc0101214cc0ce7e379 | |
parent | 9590502b7368ad39335032114210db861ba4017d (diff) | |
download | mocp-web-8fe68ea70d29e87dd6d925bfd8cf14aeb5a4b131.tar.xz |
-rw-r--r-- | access-restriction.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/access-restriction.php b/access-restriction.php index 92049bc..35ff597 100644 --- a/access-restriction.php +++ b/access-restriction.php @@ -8,7 +8,7 @@ $pubKey = trim(fgets($keyFile)); fclose($keyFile); function client_identifier() { - return $_SERVER['SERVER_ADDR'] . " " . $_SERVER['REMOTE_ADDR'] . " " . $_SERVER['REMOTE_PORT']; + return $_SERVER['SERVER_ADDR'] . " " . $_SERVER['REMOTE_ADDR'] . " " . $_SERVER["FORWARDED_FOR"]; } function zugriff_erlaubt() { |