/stuff file browser, minor tweaks

This commit is contained in:
YourFriendlyNeighborhoodDealer 2019-08-14 09:05:28 +02:00
parent 8091c2d4e9
commit e9c2df8e9b
5 changed files with 81 additions and 11 deletions

View file

@ -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;