From 4903014ebdfe31cc0b9b972a93ea4eb020ee11a3 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 1 Mar 2022 12:59:02 +0100 Subject: [PATCH] webconsole id in url --- console.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/console.js b/console.js index 831b42e..4733fda 100644 --- a/console.js +++ b/console.js @@ -13,6 +13,8 @@ const server = http.createServer((req, res) => { return; } + var id = req.url.substring(1); + let data = ""; req.on('data', chunk => { @@ -20,7 +22,7 @@ const server = http.createServer((req, res) => { }) req.on('end', () => { - console.log(`[${time()}]${data}`); + console.log(`[${time()}][${id}]${data}`); res.writeHead(200); res.end(); })