mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 10:38:21 +04:00
ddns-scripts: bump to version 2.7.8-1
- remove Cloudflare v1 protocol support #6084 #6519 - fix goip.de update url #6448 #6519 - change Cloudflare v4 to read "Proxied" from current setting at Cloudflare Dashboard #5097 #6364 #6505 - fix replace of password inside logfile #6568 - remove myself as PKG_MAINTAINER Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
# option username - your cloudflare e-mail
|
||||
# option password - cloudflare api key, you can get it from cloudflare.com/my-account/
|
||||
# option domain - "hostname@yourdomain.TLD" # syntax changed to remove split_FQDN() function and tld_names.dat.gz
|
||||
# option param_opt - Whether the record is receiving the performance and security benefits of Cloudflare (not empty => false)
|
||||
#
|
||||
# The proxy status would not be changed by this script. Please change it in Cloudflare dashboard manually.
|
||||
#
|
||||
# variable __IP already defined with the ip-address to use for update
|
||||
#
|
||||
@@ -176,11 +177,8 @@ __DATA=$(grep -o '"content":"[^"]*' $DATFILE | grep -o '[^"]*$' | head -1)
|
||||
|
||||
# update is needed
|
||||
# let's build data to send
|
||||
# set proxied parameter (default "true")
|
||||
[ -z "$param_opt" ] && __PROXIED="true" || {
|
||||
__PROXIED="false"
|
||||
write_log 7 "Cloudflare 'proxied' disabled"
|
||||
}
|
||||
# set proxied parameter
|
||||
__PROXIED=$(grep -o '"proxied":[^",]*' $DATFILE | grep -o '[^:]*$')
|
||||
|
||||
# use file to work around " needed for json
|
||||
cat > $DATFILE << EOF
|
||||
|
||||
Reference in New Issue
Block a user