提交 8ffd56ef 编写于 作者: E eoLinker API Management

V2.0.3

上级 98f5ef2b
......@@ -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,""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册