ddns-scripts: Fix Route53 provider
authorMax Berger <max@berger.name>
Mon, 30 Oct 2023 19:14:40 +0000 (20:14 +0100)
committerDirk Brenken <dev@brenken.org>
Sat, 25 Nov 2023 15:36:40 +0000 (16:36 +0100)
This fixes the Invalid Resource Record: FATAL problem: ARRDATAIllegalIPv4Address error message described in https://forum.openwrt.org/t/route53v1-script-error/160068

Maintainer: @chris5560, @maxberger, @dibdot
Tested: Checked on local system
Signed-off-by: Max Berger <max@berger.name>
(cherry picked from commit 86a620f644ae5a57022bddb6d7ee98a263143a35)

net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/update_route53_v1.sh

index 61ceef8632f2a26c5e76efc3d25414c59542ca26..607152a1c7d863297a56575751b5958d39960926 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ddns-scripts
 PKG_VERSION:=2.8.2
-PKG_RELEASE:=41
+PKG_RELEASE:=42
 
 PKG_LICENSE:=GPL-2.0
 
index 499f272031600aeea61ab2b184f860dba4188cdb..0d474051eed323380031de020d8cf33bfd4723b7 100644 (file)
 ENDPOINT="route53.amazonaws.com"
 RECORD_TTL=300
 RECORD_NAME="${lookup_host}."
+RECORD_VALUE="${__IP}"
 [ ${use_ipv6} -eq 0 ] && RECORD_TYPE="A"
 [ ${use_ipv6} -eq 1 ] && RECORD_TYPE="AAAA"
-RECORD_VALUE="${LOCAL_IP}"
+
 HOSTED_ZONE_ID="${domain}"
 API_PATH="/2013-04-01/hostedzone/${HOSTED_ZONE_ID}/rrset/"