1
This commit is contained in:
parent
ab94a70edd
commit
3a0eae01dc
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user