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:
parent
7f6291964e
commit
9a1df3ee8a
1 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue