This commit is contained in:
aozhiwei 2020-10-30 17:35:14 +08:00
parent ab94a70edd
commit 3a0eae01dc

View File

@ -114,16 +114,16 @@ func (this* RiskMgr) UnInit() {
func (this* RiskMgr) OutputLog() { func (this* RiskMgr) OutputLog() {
f5.SysLog().Info("passobj %s", this.GetPassObj().ToJsonStr()) f5.SysLog().Info("passobj %s", this.GetPassObj().ToJsonStr())
f5.SysLog().Info("blockobj %s", this.GetBlockObj().ToJsonStr()) f5.SysLog().Info("blockobj %s", this.GetBlockObj().ToJsonStr())
this.passTimes = 0 atomic.StoreInt64(&this.passTimes, 0)
this.blockTimes = 0 atomic.StoreInt64(&this.blockTimes, 0)
this.ipWhiteListPassTimes = 0 atomic.StoreInt64(&this.ipWhiteListPassTimes, 0)
this.launchWhiteListPassTimes = 0 atomic.StoreInt64(&this.launchWhiteListPassTimes, 0)
this.safeZonePassTimes = 0 atomic.StoreInt64(&this.safeZonePassTimes, 0)
this.httpMethodBlockTimes = 0 atomic.StoreInt64(&this.httpMethodBlockTimes, 0)
this.sessionErrBlockTimes = 0 atomic.StoreInt64(&this.sessionErrBlockTimes, 0)
this.ipBlackListBlockTimes = 0 atomic.StoreInt64(&this.ipBlackListBlockTimes, 0)
this.launchBlackListBlockTimes = 0 atomic.StoreInt64(&this.launchBlackListBlockTimes, 0)
this.unSafeZoneBlockTimes = 0 atomic.StoreInt64(&this.unSafeZoneBlockTimes, 0)
} }
func (this* RiskMgr) InIpWhiteList(ip string) bool { func (this* RiskMgr) InIpWhiteList(ip string) bool {