Update index.js
This commit is contained in:
parent
5eb789dcc4
commit
2430883cc3
1 changed files with 2 additions and 2 deletions
4
index.js
4
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);
|
||||
http.createServer(app).listen(httpPort);
|
||||
|
|
Loading…
Add table
Reference in a new issue