From 29fc9244753021cc2c1c961ce3cc237cd2ef4072 Mon Sep 17 00:00:00 2001 From: Yann Stepienik Date: Mon, 1 May 2023 11:05:35 +0100 Subject: [PATCH] v0.3.0-unstable13 --- package.json | 2 +- src/proxy/shield.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 520fc0a..83dc588 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cosmos-server", - "version": "0.3.0-unstable12", + "version": "0.3.0-unstable13", "description": "", "main": "test-server.js", "bugs": { diff --git a/src/proxy/shield.go b/src/proxy/shield.go index 9927884..931eb09 100644 --- a/src/proxy/shield.go +++ b/src/proxy/shield.go @@ -132,7 +132,7 @@ func (shield *smartShieldState) isAllowedToReqest(policy utils.SmartShieldPolicy banType: PERM, time: time.Now(), }) - Utils.Warn("User " + ClientID + " has been banned permanently: "+ fmt.Sprintf("%+v", userConsumed)) + utils.Warn("User " + ClientID + " has been banned permanently: "+ fmt.Sprintf("%+v", userConsumed)) return false } else if nbStrikes >= 3 { // temp ban @@ -141,7 +141,7 @@ func (shield *smartShieldState) isAllowedToReqest(policy utils.SmartShieldPolicy banType: TEMP, time: time.Now(), }) - Utils.Warn("User " + ClientID + " has been banned temporarily: "+ fmt.Sprintf("%+v", userConsumed)) + utils.Warn("User " + ClientID + " has been banned temporarily: "+ fmt.Sprintf("%+v", userConsumed)) return false } @@ -155,7 +155,7 @@ func (shield *smartShieldState) isAllowedToReqest(policy utils.SmartShieldPolicy banType: STRIKE, time: time.Now(), }) - Utils.Warn("User " + ClientID + " has received a strike: "+ fmt.Sprintf("%+v", userConsumed)) + utils.Warn("User " + ClientID + " has received a strike: "+ fmt.Sprintf("%+v", userConsumed)) return false }