diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index 5cd08eab81..ab9382fb17 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ddns-scripts PKG_VERSION:=2.8.2 -PKG_RELEASE:=69 +PKG_RELEASE:=70 PKG_LICENSE:=GPL-2.0 diff --git a/net/ddns-scripts/files/usr/lib/ddns/update_porkbun_v3.sh b/net/ddns-scripts/files/usr/lib/ddns/update_porkbun_v3.sh index 3e8bdac135..658fb1ff69 100644 --- a/net/ddns-scripts/files/usr/lib/ddns/update_porkbun_v3.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/update_porkbun_v3.sh @@ -59,9 +59,9 @@ function api_call() { url="$__API/$1" write_log 7 "API endpoint URL: $url" write_log 7 "API request JSON payload: $2" - response=$($CURL --data "$2" "$url") - write_log 7 "API response JSON payload: $response" - echo "$response" + response="$("$CURL" -s -X POST "$url" -H "Content-Type: application/json" --data "$2" -o "$DATFILE" 2>"$ERRFILE")" + write_log 7 "API response JSON payload: $(cat "$DATFILE")" + echo "$(cat "$DATFILE")" } # Check Porkbun API response status