mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	format dns_me api
This commit is contained in:
		
							parent
							
								
									2ea5b283a8
								
							
						
					
					
						commit
						dec90f7e5e
					
				| @ -65,7 +65,7 @@ dns_me_add(){ | ||||
|     if [ "$?" = "0" ]; then | ||||
|       _info "Updated" | ||||
|       #todo: check if the record takes effect | ||||
|       return 0; | ||||
|       return 0 | ||||
|     fi | ||||
|     _err "Update error" | ||||
|     return 1 | ||||
| @ -73,14 +73,12 @@ dns_me_add(){ | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| #fulldomain | ||||
| dns_me_rm() { | ||||
|   fulldomain=$1 | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| ####################  Private functions bellow ################################## | ||||
| #_acme-challenge.www.domain.com | ||||
| #returns | ||||
| @ -95,7 +93,7 @@ _get_root() { | ||||
|     h=$(printf $domain | cut -d . -f $i-100) | ||||
|     if [ -z "$h" ]; then | ||||
|       #not valid | ||||
|       return 1; | ||||
|       return 1 | ||||
|     fi | ||||
| 
 | ||||
|     if ! _me_rest GET "name?domainname=$h"; then | ||||
| @ -144,5 +142,3 @@ _me_rest() { | ||||
|   _debug2 response "$response" | ||||
|   return 0 | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user