mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
Merge 8f4269a8dc
into 34ca6fec92
This commit is contained in:
commit
80dff586be
1 changed files with 2 additions and 2 deletions
|
@ -60,8 +60,8 @@ __ip_address() {
|
|||
;;
|
||||
*)
|
||||
if [ "$IP_EXTERNAL" = "1" ]; then
|
||||
timeout 1 wget -q -O- http://v4.ipv6-test.com/api/myip.php </dev/null >"$cache" 2>/dev/null &
|
||||
sleep 0.02
|
||||
timeout 1 dig myip.opendns.com @resolver1.opendns.com +short </dev/null 2>/dev/null | tr -d '\n' >"$cache" &
|
||||
sleep 0.1
|
||||
[ -s "$cache" ] && read ipaddr < "$cache"
|
||||
elif metadata_available; then
|
||||
# We're in EC2, so get our public IP address
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue