1
0
Fork 0
mirror of https://github.com/fernwerker/ownDynDNS.git synced 2025-07-09 21:55:13 +02:00

Update update-dyndns.sh

Updated example script, fixed bug that produces 301 on curl of current IP.
This commit is contained in:
AlpayY 2020-08-26 22:49:36 +02:00 committed by GitHub
parent 7f6291964e
commit 9a1df3ee8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,8 +10,8 @@ SCRIPT="https://<url of your webspace>/update.php"
FORCE=0
MODE="both" # can be undefined, "@", "*" or "both"
IPV4=$(curl -4 -q ident.me)
IPV6=$(curl -6 -q ident.me)
IPV4=$(curl -4 -q v4.ident.me)
IPV6=$(curl -6 -q v6.ident.me)
echo ${IPV4}
echo ${IPV6}