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 |     if [ "$?" = "0" ]; then | ||||||
|       _info "Updated" |       _info "Updated" | ||||||
|       #todo: check if the record takes effect |       #todo: check if the record takes effect | ||||||
|       return 0; |       return 0 | ||||||
|     fi |     fi | ||||||
|     _err "Update error" |     _err "Update error" | ||||||
|     return 1 |     return 1 | ||||||
| @ -73,14 +73,12 @@ dns_me_add(){ | |||||||
| 
 | 
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| #fulldomain | #fulldomain | ||||||
| dns_me_rm() { | dns_me_rm() { | ||||||
|   fulldomain=$1 |   fulldomain=$1 | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| ####################  Private functions bellow ################################## | ####################  Private functions bellow ################################## | ||||||
| #_acme-challenge.www.domain.com | #_acme-challenge.www.domain.com | ||||||
| #returns | #returns | ||||||
| @ -95,7 +93,7 @@ _get_root() { | |||||||
|     h=$(printf $domain | cut -d . -f $i-100) |     h=$(printf $domain | cut -d . -f $i-100) | ||||||
|     if [ -z "$h" ]; then |     if [ -z "$h" ]; then | ||||||
|       #not valid |       #not valid | ||||||
|       return 1; |       return 1 | ||||||
|     fi |     fi | ||||||
| 
 | 
 | ||||||
|     if ! _me_rest GET "name?domainname=$h"; then |     if ! _me_rest GET "name?domainname=$h"; then | ||||||
| @ -144,5 +142,3 @@ _me_rest() { | |||||||
|   _debug2 response "$response" |   _debug2 response "$response" | ||||||
|   return 0 |   return 0 | ||||||
| } | } | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user