mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
removed host logging, login fix
This commit is contained in:
parent
e9f5eba8c1
commit
885198d357
4 changed files with 6 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue