summaryrefslogtreecommitdiff
path: root/access-restriction.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-05-18 10:18:36 +0200
committerErich Eckner <git@eckner.net>2023-05-18 10:18:36 +0200
commit8fe68ea70d29e87dd6d925bfd8cf14aeb5a4b131 (patch)
treec689ac427ee68473f9a1ddc0101214cc0ce7e379 /access-restriction.php
parent9590502b7368ad39335032114210db861ba4017d (diff)
downloadmocp-web-master.tar.xz
access-restriction.php: use tor circuit number as identificationHEADmaster
Diffstat (limited to 'access-restriction.php')
-rw-r--r--access-restriction.php2
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() {