From 6960da6b453a5cd29988e82591f556add3862742 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Fri, 9 Apr 2021 17:06:18 +0100 Subject: [PATCH] Fix rdns --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 75cf003..ed790f9 100644 --- a/app.js +++ b/app.js @@ -9,7 +9,7 @@ app.get('/', async (req, res) => { const ip = req.connection.remoteAddress let host try { - host = await r.reverse(ip) + host = await r.reverse(/.*:([^:]+)$/.exec(ip)[1]) } catch(err) { console.log(err.message) host = 'ERR'