mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
adding hostname to stats, changed data backup directory
This commit is contained in:
parent
7020c10626
commit
6ce52d00d9
5 changed files with 6 additions and 6 deletions
|
@ -191,7 +191,7 @@ function Load () {
|
|||
setNoLogReadInterval()
|
||||
}
|
||||
|
||||
function LogStat (url, ip) {
|
||||
function LogStat (url, ip, hostname) {
|
||||
let nolog = noLogips.some((x) => {
|
||||
return x.includes(ip)
|
||||
})
|
||||
|
@ -199,7 +199,7 @@ function LogStat (url, ip) {
|
|||
return
|
||||
}
|
||||
|
||||
url = url.split('?')[0]
|
||||
url = hostname + url.split('?')[0]
|
||||
Inc(url)
|
||||
AddVisitStat(url)
|
||||
Save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue