Change endpoint url, updated CONTROL

This commit is contained in:
Jonathan Sélea 2019-12-08 15:35:54 +01:00
parent db876aaa79
commit 5b43a77efa
2 changed files with 2 additions and 1 deletions

View file

@ -6,4 +6,5 @@ Architecture: all
Essential: no
Installed-Size: 16
Maintainer: Jonathan Sélea
Depends-On: curl
Description: Tool for managing Dynamic DNS toghether with FreeDNS.linux.pizza

View file

@ -9,7 +9,7 @@ set -e
# DO NOT MODIFY #
IP="$(curl --connect-timeout 10 -s ipv4.is || curl --connect-timeout 10 -s ifconfig.me)"
IP="$(curl --connect-timeout 10 -s ipv4.is || curl --connect-timeout 10 -s ipv4.is)"
#IP="$(curl --config /etc/lp-dyndns/curlrc)"
CURRENTIP="$(dig ${DOMAIN} +short)"
APIURL="https://freedns.linux.pizza/api/v1/remote/updatepw?record=${RECORDID}&password=${PASSWORD}&content=${IP}"