mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
/stuff file browser, minor tweaks
This commit is contained in:
parent
8091c2d4e9
commit
e9c2df8e9b
5 changed files with 81 additions and 11 deletions
|
@ -59,7 +59,7 @@ function Log(s, c, b) {
|
|||
function LogReq(req, toFile, sc) {
|
||||
try {
|
||||
var ip = req.headers['cf-connecting-ip'] || req.connection.remoteAddress;
|
||||
var logEntry = ip + DELIM + req.headers['user-agent'] +
|
||||
var logEntry = ip + DELIM + req.hostname + DELIM + req.headers['user-agent'] +
|
||||
DELIM + req.method + DELIM;
|
||||
|
||||
logEntry += req.url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue