Update limit_ip_access.lua
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -122,6 +122,8 @@ function M:limit_ip_access() | @@ -122,6 +122,8 @@ function M:limit_ip_access() | ||
122 | ngx.header["Content-type"]="application/json;charset=utf-8" | 122 | ngx.header["Content-type"]="application/json;charset=utf-8" |
123 | if limit_type=="3" then | 123 | if limit_type=="3" then |
124 | ngx.header["x-yoho-malicode"]="10011" | 124 | ngx.header["x-yoho-malicode"]="10011" |
125 | + local rsp ='{"code": 10011, "message": ""}' | ||
126 | + ngx.say(rsp) | ||
125 | end | 127 | end |
126 | ngx.exit(ngx.HTTP_OK) | 128 | ngx.exit(ngx.HTTP_OK) |
127 | end | 129 | end |
-
Please register or login to post a comment