Browse Source

Add sleep before each REST call to Constellix to prevent rate limit

wout 2 tháng trước cách đây
mục cha
commit
1b5e66f9c2
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      dnsapi/dns_constellix.sh

+ 3 - 0
dnsapi/dns_constellix.sh

@@ -156,6 +156,9 @@ _constellix_rest() {
   data="$3"
   _debug "$ep"
 
+  # Prevent rate limit
+  _sleep 2
+
   rdate=$(date +"%s")"000"
   hmac=$(printf "%s" "$rdate" | _hmac sha1 "$(printf "%s" "$CONSTELLIX_Secret" | _hex_dump | tr -d ' ')" | _base64)