Not logging nolog ip stats

This commit is contained in:
MrFry 2019-10-28 15:02:35 +01:00
parent 5dfcb7d8ae
commit 34d7185736
2 changed files with 10 additions and 2 deletions

View file

@ -138,7 +138,14 @@ function Load () {
setNoLogReadInterval()
}
function LogStat (url) {
function LogStat (url, ip) {
let nolog = noLogips.some((x) => {
return x.includes(ip)
})
if (nolog) {
return
}
url = url.split('?')[0]
Inc(url)
AddVisitStat(url)