From d35bf517800c3fbf08e400118c8750645f420ec5 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 7 Aug 2016 10:23:52 +0800 Subject: [PATCH] 2.3.5: skip domain verify if the authorization is already valid, add to production server. --- acme.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/acme.sh b/acme.sh index db66fd46..228237ca 100755 --- a/acme.sh +++ b/acme.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh -VER=2.3.4 +VER=2.3.5 PROJECT_NAME="acme.sh" @@ -1510,14 +1510,14 @@ issue() { keyauthorization="$token.$thumbprint" _debug keyauthorization "$keyauthorization" - if [ "$STAGE" ] ; then - if printf "$response" | grep '"status":"valid"' >/dev/null 2>&1 ; then - _info "$d is already verified, skip." - keyauthorization=$STATE_VERIFIED - _debug keyauthorization "$keyauthorization" - fi + + if printf "$response" | grep '"status":"valid"' >/dev/null 2>&1 ; then + _info "$d is already verified, skip." + keyauthorization=$STATE_VERIFIED + _debug keyauthorization "$keyauthorization" fi + dvlist="$d$sep$keyauthorization$sep$uri$sep$vtype$sep$_currentRoot" _debug dvlist "$dvlist"