projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aeb5cf
)
Revert "ddns-scripts: fix cloudflare.com-v4"
author
Rosen Penev
<rosenp@gmail.com>
Fri, 31 Jan 2020 00:20:56 +0000
(16:20 -0800)
committer
Rosen Penev
<rosenp@gmail.com>
Fri, 31 Jan 2020 00:20:56 +0000
(16:20 -0800)
This reverts commit
67e2efb301f9e6ac9ee471d2457f08feda7fab38
.
This is totally wrong. The actual bug is in the luci app.
net/ddns-scripts/files/update_cloudflare_com_v4.sh
patch
|
blob
|
history
diff --git
a/net/ddns-scripts/files/update_cloudflare_com_v4.sh
b/net/ddns-scripts/files/update_cloudflare_com_v4.sh
index 3b909d781b95a4f229f7642593285671ff67aba9..dbf6f592bfba7dc0c2432402c72ef19b8c7f5608 100755
(executable)
--- a/
net/ddns-scripts/files/update_cloudflare_com_v4.sh
+++ b/
net/ddns-scripts/files/update_cloudflare_com_v4.sh
@@
-140,7
+140,7
@@
__ZONEID=$(grep -o '"id":"[^"]*' $DATFILE | grep -o '[^"]*$' | head -1)
}
# read record id for A or AAAA record of host.domain.TLD
-__RUNPROG="$__PRGBASE --request GET '$__URLBASE/zones/$__ZONEID/dns_records?name=
*.
$__HOST&type=$__TYPE'"
+__RUNPROG="$__PRGBASE --request GET '$__URLBASE/zones/$__ZONEID/dns_records?name=$__HOST&type=$__TYPE'"
cloudflare_transfer || return 1
# extract record id
__RECID=$(grep -o '"id":"[^"]*' $DATFILE | grep -o '[^"]*$' | head -1)