From 2430883cc3fee1d02e481d83626a00fcfe4c672a Mon Sep 17 00:00:00 2001 From: Array in a Matrix Date: Fri, 4 Feb 2022 10:44:35 -0500 Subject: [PATCH] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 4182b88..b00a841 100644 --- a/index.js +++ b/index.js @@ -25,11 +25,11 @@ const app = connect() let output = time.getFullYear() + "-" + ("0" + (time.getMonth() + 1)).slice(-2) + "-" + ("0" + time.getDate()).slice(-2) + " " + time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + ">> " + ip; console.log(output); - file.appendFile("/matrix/nginx-proxy/data/matrix-domain/server/ip-grabber/ip-addresses.log", output + '\n', (e) => { + file.appendFile("./ip-addresses.log", output + '\n', (e) => { if (e) { console.log(e); }; }); }); -http.createServer(app).listen(httpPort); \ No newline at end of file +http.createServer(app).listen(httpPort);