jiangfucheng commented on code in PR #9841:
URL: https://github.com/apache/apisix/pull/9841#discussion_r1265358579
##########
apisix/plugins/ua-restriction.lua:
##########
@@ -97,6 +95,10 @@ function _M.check_schema(conf)
return false, err
end
+ if conf.allowlist and conf.denylist then
+ return false, "allowlist and denylist can't be enabled at the same
time."
+ end
Review Comment:
Both `allowlist` and `denylist` can be disabled simultaneously, so I added
an additional schema. Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]