This commit is contained in:
Simon Detheridge 2021-04-09 17:06:18 +01:00
parent fb4c1fca36
commit 6960da6b45
Signed by: simon
GPG Key ID: 38640971DA1E704E
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -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'