From 8701199a339ef72902b50e5c16240761bd5848cf Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 9 Sep 2023 00:51:21 +0300 Subject: [PATCH] implement access helper --- src/library/access.php | 9 +++++++++ src/public/peer.php | 7 ++++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 src/library/access.php diff --git a/src/library/access.php b/src/library/access.php new file mode 100644 index 0000000..721a910 --- /dev/null +++ b/src/library/access.php @@ -0,0 +1,9 @@ +findLastPeerPortStatusesByPeerId($requestPeerId);

address) ?> - address == $_SERVER['REMOTE_ADDR']) { ?> + address])) { ?> @@ -248,7 +249,7 @@ $peerPortStatuses = $db->findLastPeerPortStatusesByPeerId($requestPeerId); - address == $_SERVER['REMOTE_ADDR']) { ?> + address])) { ?> @@ -276,7 +277,7 @@ $peerPortStatuses = $db->findLastPeerPortStatusesByPeerId($requestPeerId); $peerRemoteConnection) { ?> timeAdded) ?> - address == $_SERVER['REMOTE_ADDR']) { ?> + address])) { ?> remote ?>