ddns-scripts: porkbun bugfix for subdomain on A/AAAA record
authorDillon Dixon <github@dillon.io>
Sun, 27 Oct 2024 22:22:56 +0000 (15:22 -0700)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Wed, 30 Oct 2024 09:37:49 +0000 (10:37 +0100)
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 <github@dillon.io>
net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/update_porkbun_v3.sh

index cd23443fa24d5a0b267ac9407ab6392562a8c540..e3d67b5a392a6094240bc43a5e2182f35421d515 100644 (file)
@@ -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
 
index f1824d9d5be65ad6b5a76ee7bcae51ce12f1e3e7..3e8bdac135f2e3371cfaa81915f4e8435d76df89 100644 (file)
@@ -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)