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 <github@dillon.io>
This commit is contained in:
Dillon Dixon
2024-10-27 15:22:56 -07:00
committed by Florian Eckert
parent 0a0680af1d
commit b3d9e90942
2 changed files with 2 additions and 1 deletions

View 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)