mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-22 18:52:46 +01:00
parent
b4421b0845
commit
73d09c16cb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user