removed host logging, login fix

This commit is contained in:
mrfry 2023-04-02 09:55:31 +02:00
parent e9f5eba8c1
commit 885198d357
4 changed files with 6 additions and 17 deletions

View file

@ -116,21 +116,6 @@ function LogReq(
return
}
let hostname
if (req.hostname) {
hostname = req.hostname.replace('www.', '').split('.')[0]
} else {
hostname = 'NOHOST'
Log(
'req.hostname is undefined! req.hostname: ' + req.hostname,
GetColor('redbg')
)
}
if (!toFile) {
hostname = expandWithSpaces(hostname, 10)
}
logEntry += logHashed(hostname) + dl
if (toFile) {
logEntry += req.headers['user-agent'] + dl
logEntry += req.method + dl