From: Dillon Dixon Date: Sun, 27 Oct 2024 22:22:56 +0000 (-0700) Subject: ddns-scripts: porkbun bugfix for subdomain on A/AAAA record X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=b3d9e90942a25a83306b2fc2a60cf2ee68c2ed2e;p=openwrt-packages.git ddns-scripts: porkbun bugfix for subdomain on A/AAAA record If the "name" parameter is not provided, then updates to a subdomain A/AAAA record result in the subdomain being removed from the record. This change always provides the "name" parameter to correct that behavior. Signed-off-by: Dillon Dixon --- diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index cd23443fa..e3d67b5a3 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:=49 +PKG_RELEASE:=50 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 f1824d9d5..3e8bdac13 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 @@ -130,6 +130,7 @@ function edit_record() { local request response json_init json_authenticate + json_add_string "name" "$__SUBDOMAIN" json_add_string "type" "$__TYPE" json_add_string "content" "$__ADDR" request=$(json_dump)