From 78dcaae9e8ed0edbb44102f55fd7850a3ad9df8d Mon Sep 17 00:00:00 2001 From: Wildan M Date: Fri, 16 Feb 2024 23:33:18 +0700 Subject: [PATCH] Update iptables.js --- src/controllers/iptables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/iptables.js b/src/controllers/iptables.js index 0f7b994..a3e132c 100644 --- a/src/controllers/iptables.js +++ b/src/controllers/iptables.js @@ -12,7 +12,7 @@ export default function () { router.get('/show', async function (req, res, next) { try { const p = await executor.getParsed(); - const user = req.body.user.toString(); + const user = req.query.user?.toString(); if (user) { if (user.match(/[^\w.-]/)) { throw new Error("invalid username");