pull/2416/head
			
			
		
		
							parent
							
								
									41c951811e
								
							
						
					
					
						commit
						b9b2cd278b
					
				
							
								
								
									
										4
									
								
								acme.sh
								
								
								
								
							
							
						
						
									
										4
									
								
								acme.sh
								
								
								
								
							| 
						 | 
				
			
			@ -3623,7 +3623,7 @@ _ns_purge_cf() {
 | 
			
		|||
  _cf_d="$1"
 | 
			
		||||
  _cf_d_type="$2"
 | 
			
		||||
  _debug "Cloudflare purge $_cf_d_type record for domain $_cf_d"
 | 
			
		||||
  _cf_purl="https://1.0.0.1/api/v1/purge?domain=$_cf_d&type=$_cf_d_type"
 | 
			
		||||
  _cf_purl="https://cloudflare-dns.com/api/v1/purge?domain=$_cf_d&type=$_cf_d_type"
 | 
			
		||||
  response="$(_post "" "$_cf_purl")"
 | 
			
		||||
  _debug2 response "$response"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -3682,11 +3682,11 @@ _check_dns_entries() {
 | 
			
		|||
      fi
 | 
			
		||||
      _left=1
 | 
			
		||||
      _info "Not valid yet, let's wait 10 seconds and check next one."
 | 
			
		||||
      _sleep 10
 | 
			
		||||
      __purge_txt "$txtdomain"
 | 
			
		||||
      if [ "$txtdomain" != "$aliasDomain" ]; then
 | 
			
		||||
        __purge_txt "$aliasDomain"
 | 
			
		||||
      fi
 | 
			
		||||
      _sleep 10
 | 
			
		||||
    done
 | 
			
		||||
    if [ "$_left" ]; then
 | 
			
		||||
      _info "Let's wait 10 seconds and check again".
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -63,7 +63,7 @@ dns_dp_rm() {
 | 
			
		|||
    return 0
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  record_id=$(echo "$response" | tr "{" "\n" | grep "$txtvalue" | grep '^"id"' | cut -d : -f 2 | cut -d '"' -f 2)
 | 
			
		||||
  record_id=$(echo "$response" | tr "{" "\n" | grep -- "$txtvalue" | grep '^"id"' | cut -d : -f 2 | cut -d '"' -f 2)
 | 
			
		||||
  _debug record_id "$record_id"
 | 
			
		||||
  if [ -z "$record_id" ]; then
 | 
			
		||||
    _err "Can not get record id."
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue