Browse Source

Don't hang forever on curl

Alexandre Aubin 3 years ago
parent
commit
ede3a5837a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/config

+ 2 - 2
scripts/config

@@ -44,8 +44,8 @@ ask:
   en: |-
     Your VPN is running :)
 
-    **IPv4:** \`$(curl https://ip.yunohost.org --silent)\`
-    **IPv6:** \`$(curl https://ip6.yunohost.org --silent)\`
+    **IPv4:** \`$(curl --max-time 5 https://ip.yunohost.org --silent)\`
+    **IPv6:** \`$(curl --max-time 5 https://ip6.yunohost.org --silent)\`
 EOF
         else
             cat << EOF