ydns-simple: silence curl

ref #6
This commit is contained in:
Aminda Suomalainen 2015-07-19 11:35:59 +03:00
parent b4421b0845
commit 73d09c16cb
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ HOSTNAME=""
if hash dig 2>/dev/null; then
WAN_IP4=$(dig +short myip.opendns.com. A @208.67.220.220)
else
WAN_IP4=$(curl -L4 https://icanhazip.com/)
WAN_IP4=$(curl -sL4 https://icanhazip.com/)
fi
if [ -f $HOME/.wan_ip4-ydns.txt ]; then
OLD_WAN_IP4=$(cat $HOME/.wan_ip4-ydns.txt)
@ -34,7 +34,7 @@ fi
if hash dig 2>/dev/null; then
WAN_IP6=$(dig +short myip.opendns.com. AAAA @2620:0:ccd::2)
else
WAN_IP6=$(curl -L6 https://icanhazip.com/)
WAN_IP6=$(curl -sL6 https://icanhazip.com/)
fi
if [ -f $HOME/.wan_ip6-ydns.txt ]; then
OLD_WAN_IP6=$(cat $HOME/.wan_ip6-ydns.txt)