mirror of
https://github.com/Rayzggz/server_torii.git
synced 2025-06-19 05:31:22 +08:00
feat: CAPTCHA
This commit is contained in:
@ -10,7 +10,7 @@ func URLAllowList(reqData dataType.UserRequest, ruleSet *config.RuleSet, decisio
|
||||
url := reqData.Uri
|
||||
list := ruleSet.URLAllowList
|
||||
if list.Match(url) {
|
||||
decision.SetCode(action.Done, "200")
|
||||
decision.SetCode(action.Done, []byte("200"))
|
||||
} else {
|
||||
decision.Set(action.Continue)
|
||||
}
|
||||
|
Reference in New Issue
Block a user