diff --git a/release/goku_ce_2.0.3.zip b/release/goku_ce_2.0.3.zip index c38d78608d2e33acecbf6f74b1b6dd9c774dcca6..e395e5cdf2f32449affa0421113cd8f29e047fc4 100644 Binary files a/release/goku_ce_2.0.3.zip and b/release/goku_ce_2.0.3.zip differ diff --git a/source_code/middleware/ip_limit.go b/source_code/middleware/ip_limit.go index c2c352c5128bd3ff1ccfd7fc8a107eee5ea16791..3fd79025c6aeabd23af38f1b7fc79d4fe9f02c97 100644 --- a/source_code/middleware/ip_limit.go +++ b/source_code/middleware/ip_limit.go @@ -12,7 +12,7 @@ func IPLimit(g *goku.Context,res http.ResponseWriter, req *http.Request) (bool,s remoteIP := InterceptIP(remoteAddr, ":") if !globalIPLimit(g,remoteIP){ return false,"[Global] Illegal IP" - } else if globalIPLimit(g,remoteIP) && !strategyIPLimit(g,remoteIP) { + } else if !strategyIPLimit(g,remoteIP) { return false,"[Strategy] Illegal IP" } return true,""