From e4656967549998cf080b60253dbdcfc7e390c9e9 Mon Sep 17 00:00:00 2001 From: GDColon Date: Sun, 12 Jan 2020 00:20:57 -0500 Subject: [PATCH] online icon kit improvements + ip ban protection spanish/language update coming soon^tm --- api/post/postComment.js | 2 +- html/iconkit.html | 16 ++++++++-------- misc/credits.json | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/api/post/postComment.js b/api/post/postComment.js index 16ae4be..eb19e1f 100644 --- a/api/post/postComment.js +++ b/api/post/postComment.js @@ -47,7 +47,7 @@ module.exports = async (app, req, res) => { request.post(app.endpoint + 'uploadGJComment21.php', { form: params, - headers: {'x-forwarded-for': '255.255.255.255'} // prevent pesky ip bans + headers: {'x-forwarded-for': req.headers['x-forwarded-for'] || req.connection.remoteAddress } // prevent pesky ip bans }, function (err, resp, body) { if (err) return res.status(400).send("The Geometry Dash servers returned an error! Perhaps they're down for maintenance") if (!body || body == "-1") return res.status(400).send("The Geometry Dash servers rejected your comment! Try again later, or make sure your username and password are entered correctly.") diff --git a/html/iconkit.html b/html/iconkit.html index aa37c26..140d604 100644 --- a/html/iconkit.html +++ b/html/iconkit.html @@ -15,12 +15,12 @@