WAF策略日志也加入地域信息

This commit is contained in:
刘祥超
2021-01-20 14:19:10 +08:00
parent 0bb379e4cc
commit fc68167f77
2 changed files with 34 additions and 0 deletions

View File

@@ -5,4 +5,13 @@ Tea.context(function () {
that.day = day
})
})
let that = this
this.accessLogs.forEach(function (accessLog) {
if (typeof (that.regions[accessLog.remoteAddr]) == "string") {
accessLog.region = that.regions[accessLog.remoteAddr]
} else {
accessLog.region = ""
}
})
})