cli add nocaptcha list

This commit is contained in:
Thomas Lynch
2021-11-25 18:18:16 +11:00
parent a854ed9822
commit 85b0d6cd52
2 changed files with 3 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ Some issues fixed and various improvements:
- Added additional proof-of-work element to the challenge page, both pow+captcha must be completed
- Avoid using a hack to resolve domain names, usea backend in haproxy instead
- Improved the appearance of the challenge page
- More options to CLI for nocaptcha
#### How to test

View File

@@ -61,6 +61,7 @@ Commands:
Domain management:
$0 domain list List all domains with ddos mode on.
$0 domain nocaptcha List all domains with nocaptcha mode on.
$0 domain status <domain> Get ddos mode status for a domain.
$0 domain enable <domain> Enable ddos mode for a domain.
$0 domain disable <domain> Disable ddos mode for a domain.
@@ -243,6 +244,7 @@ _handle_global_management() {
_handle_domain_management() {
case ${1} in
list) _domain_list;;
nocaptcha) _nocaptcha_list;;
status)
_ensure_domain_passed "${2}"
_domain_status "${2}";;