mirror of
https://github.com/acmesh-official/acme.sh
synced 2025-08-22 09:57:29 +00:00
Add sleep before each REST call to Constellix to prevent rate limit
This commit is contained in:
parent
74fdf649d3
commit
1b5e66f9c2
@ -156,6 +156,9 @@ _constellix_rest() {
|
|||||||
data="$3"
|
data="$3"
|
||||||
_debug "$ep"
|
_debug "$ep"
|
||||||
|
|
||||||
|
# Prevent rate limit
|
||||||
|
_sleep 2
|
||||||
|
|
||||||
rdate=$(date +"%s")"000"
|
rdate=$(date +"%s")"000"
|
||||||
hmac=$(printf "%s" "$rdate" | _hmac sha1 "$(printf "%s" "$CONSTELLIX_Secret" | _hex_dump | tr -d ' ')" | _base64)
|
hmac=$(printf "%s" "$rdate" | _hmac sha1 "$(printf "%s" "$CONSTELLIX_Secret" | _hex_dump | tr -d ' ')" | _base64)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user