diff --git a/scripts/getIp b/scripts/getIp index 858cbae..1b369f6 100755 --- a/scripts/getIp +++ b/scripts/getIp @@ -1,7 +1,7 @@ #!/bin/bash -version=1.13.0 -date="16/10/2017" +version=1.13.1 +date="17/10/2017" projet="simpledeb" contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/" script="getIp" @@ -252,7 +252,7 @@ figet_ip(){ # 16/10/2017 } # $1=4|6, assigne $ip_public -figet_ip_public(){ # 02/10/2017 +figet_ip_public(){ # 17/10/2017 local dig_test ip_test iip list_ip4(){ ip_test+=" http://whatismyip.akamai.com" @@ -311,7 +311,7 @@ figet_ip_public(){ # 02/10/2017 fi if [ "$(which wget)" ] && [ -z "$ip_public" ]; then - cmd="wget --quiet --tries=1 --timeout=5 -O - " + cmd="wget --quiet --timeout=5 -O - " for iip in $ip_test ; do ip_public="$($cmd $iip)" [ "$ip_public" ] && break @@ -339,7 +339,7 @@ figet_ip_public(){ # 02/10/2017 "dig / wget / curl / telnet / nc \n" \ "ou les ip de test sont devenues défaillantes\n" \ "réessayer après avoir installé dig (dnsutils) et wget\n" \ - "si l'erreur persiste, merci de prévenir $projet $contact" + "si l'erreur persiste, merci de prévenir $projet, $contact" fi } diff --git a/scripts/getIp_changelog.md b/scripts/getIp_changelog.md index 49fb1c0..d50c7c2 100644 --- a/scripts/getIp_changelog.md +++ b/scripts/getIp_changelog.md @@ -11,6 +11,10 @@ --- +## 1.13.1 17/10/2017 + +* révision: figet_ip_public suppression option tries personnalisée + ## 1.13.0 16/10/2017 * fix: figet_ip, erreur possible entre lo/certain ifn