mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Not logging nolog ip stats
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user