Browse Source

dns_la adapter new api

pull/4828/head
cnssl 2 years ago
parent
commit
9b691bebe1
  1. 9
      dnsapi/dns_la.sh

9
dnsapi/dns_la.sh

@ -163,7 +163,7 @@ _la_get() {
export _H1="Authorization: Basic $LA_Token" export _H1="Authorization: Basic $LA_Token"
if ! response="$(_get "$url" | tr -d ' ' | tr "}" ",")"; then
if ! response="$(_get "$url" | tr -d ' ' | tr "}" ",")"; then
_err "Error: $url" _err "Error: $url"
return 1 return 1
fi fi
@ -192,12 +192,7 @@ _la_post() {
} }
_la_token() { _la_token() {
LA_Token=$(printf "$LA_Ak:$LA_Sk" | base64 -w 0)
_debug "$LA_Token"
return 0
}
-w 0)
LA_Token=$(printf "%s:%s" "$LA_Ak" "$LA_Sk" | base64 -w 0)
_debug "$LA_Token" _debug "$LA_Token"
return 0 return 0
Loading…
Cancel
Save