summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-25 18:26:37 +0100
committerMinteck <contact@minteck.org>2022-02-25 18:26:37 +0100
commitdec562fd5a9574614834e13a9aede3b6ed948ab2 (patch)
tree171dea2f6aa3f6037f918c77b276ec1ee7837f40
parented336754e6e225b4c083d8d1c901c088466d3b4d (diff)
downloadargon-cdn-dec562fd5a9574614834e13a9aede3b6ed948ab2.tar.gz
argon-cdn-dec562fd5a9574614834e13a9aede3b6ed948ab2.tar.bz2
argon-cdn-dec562fd5a9574614834e13a9aede3b6ed948ab2.zip
Update for reverse proxies 2
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index cd3209a..73e305f 100644
--- a/index.js
+++ b/index.js
@@ -56,7 +56,7 @@ const requestListener = function(req, res) {
}
temp[uid].parts = req.url.split("/").filter(i => i.trim() !== "");
- console.log(temp[uid].parts, req.headers["user-agent"], req.socket.address().address);
+ console.log(temp[uid].parts, req.headers["user-agent"], userIp);
if (temp[uid].parts.length >= 2) {
if (temp[uid].parts.length === 3 && temp[uid].parts[0] === "authorize") {