mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
curl hangs if not available (#1719)
This commit is contained in:
parent
616fcf4a9f
commit
e3c34745d8
@ -119,9 +119,9 @@ if [ ${runGlobal} -eq 1 ]; then
|
||||
# Global IP
|
||||
# the public IP that can be detected from outside
|
||||
if [ "${ipv6}" == "on" ]; then
|
||||
globalIP=$(curl -s http://v6.ipv6-test.com/api/myip.php 2>/dev/null)
|
||||
globalIP=$(curl -s -f -S -m 5 http://v6.ipv6-test.com/api/myip.php 2>/dev/null)
|
||||
else
|
||||
globalIP=$(curl -s http://v4.ipv6-test.com/api/myip.php 2>/dev/null)
|
||||
globalIP=$(curl -s -f -S -m 5 http://v4.ipv6-test.com/api/myip.php 2>/dev/null)
|
||||
fi
|
||||
# prevent having no publicIP set at all and LND getting stuck
|
||||
# https://github.com/rootzoll/raspiblitz/issues/312#issuecomment-462675101
|
||||
|
Loading…
x
Reference in New Issue
Block a user