adding hostname to stats, changed data backup directory

This commit is contained in:
MrFry 2020-04-25 08:45:20 +02:00
parent 7020c10626
commit 6ce52d00d9
5 changed files with 6 additions and 6 deletions

View file

@ -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()