Update index.js

This commit is contained in:
Array in a Matrix 2022-02-04 10:44:35 -05:00 committed by GitHub
parent 5eb789dcc4
commit 2430883cc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
http.createServer(app).listen(httpPort);