From 31cb241a1edda6c7b6b217ac34926347d01cf7e9 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Wed, 11 Dec 2024 23:08:05 +0700 Subject: [PATCH] Ipinfo --- src/controllers/status.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/status.js b/src/controllers/status.js index f13e2a3..8724e7c 100644 --- a/src/controllers/status.js +++ b/src/controllers/status.js @@ -30,6 +30,9 @@ export default function () { supportVersions: getSupportVersions(), }) }); + router.get('/ip', async function (req, res, next) { + res.send(req.ip); + }); router.get('/check', async function (req, res, next) { try { if (lastCheck < Date.now() - refreshTime) {