From 73d09c16cb8406d2931573acc8b7dc3a34585000 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Sun, 19 Jul 2015 11:35:59 +0300 Subject: [PATCH] ydns-simple: silence curl ref #6 --- bash/ydns-simple | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/ydns-simple b/bash/ydns-simple index 3a8f062..ea20c5b 100755 --- a/bash/ydns-simple +++ b/bash/ydns-simple @@ -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)