feat: Add support for --bearer argument in acme.sh for DNS authentication

- Added `--bearer` argument parsing in the CLI.
- Integrated `_bearer` token support in DNS functions (e.g., dns_20i_add).
- Ensures bearer tokens can be passed as arguments or environment variables.
- Updated usage and debug outputs for clarity.
This commit is contained in:
Eng Acs 2024-11-16 21:12:04 +03:00
parent 63078470c2
commit ca63b8a502

View File

@ -7577,6 +7577,14 @@ _process() {
_webroot="$_webroot,$wvalue"
fi
;;
--bearer)
bearer_value=""
if [ "$2" ] && ! _startswith "$2" "-"; then
bearer_value="$2"
shift
fi
_bearer="$bearer_value"
;;
--dnssleep)
_dnssleep="$2"
Le_DNSSleep="$_dnssleep"