ddns-scripts: Fix Route53 provider
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>
This commit is contained in:
parent
e7979d6b04
commit
86a620f644
2 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=ddns-scripts
|
PKG_NAME:=ddns-scripts
|
||||||
PKG_VERSION:=2.8.2
|
PKG_VERSION:=2.8.2
|
||||||
PKG_RELEASE:=41
|
PKG_RELEASE:=42
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
|
|
||||||
|
|
|
@ -11,9 +11,10 @@
|
||||||
ENDPOINT="route53.amazonaws.com"
|
ENDPOINT="route53.amazonaws.com"
|
||||||
RECORD_TTL=300
|
RECORD_TTL=300
|
||||||
RECORD_NAME="${lookup_host}."
|
RECORD_NAME="${lookup_host}."
|
||||||
|
RECORD_VALUE="${__IP}"
|
||||||
[ ${use_ipv6} -eq 0 ] && RECORD_TYPE="A"
|
[ ${use_ipv6} -eq 0 ] && RECORD_TYPE="A"
|
||||||
[ ${use_ipv6} -eq 1 ] && RECORD_TYPE="AAAA"
|
[ ${use_ipv6} -eq 1 ] && RECORD_TYPE="AAAA"
|
||||||
RECORD_VALUE="${LOCAL_IP}"
|
|
||||||
HOSTED_ZONE_ID="${domain}"
|
HOSTED_ZONE_ID="${domain}"
|
||||||
API_PATH="/2013-04-01/hostedzone/${HOSTED_ZONE_ID}/rrset/"
|
API_PATH="/2013-04-01/hostedzone/${HOSTED_ZONE_ID}/rrset/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue