mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	
						commit
						e2accaf70e
					
				| @ -168,9 +168,15 @@ _namecom_get_root() { | |||||||
|   i=2 |   i=2 | ||||||
|   p=1 |   p=1 | ||||||
| 
 | 
 | ||||||
|   if _namecom_rest GET "domain/list"; then |   if ! _namecom_rest GET "domain/list"; then | ||||||
|     while true; do |     return 1 | ||||||
|  |   fi | ||||||
|  | 
 | ||||||
|  |   # Need to exclude the last field (tld) | ||||||
|  |   numfields=$(echo "$domain" | _egrep_o "\." | wc -l) | ||||||
|  |   while [ $i -le "$numfields" ]; do | ||||||
|     host=$(printf "%s" "$domain" | cut -d . -f $i-100) |     host=$(printf "%s" "$domain" | cut -d . -f $i-100) | ||||||
|  |     _debug host "$host" | ||||||
|     if [ -z "$host" ]; then |     if [ -z "$host" ]; then | ||||||
|       return 1 |       return 1 | ||||||
|     fi |     fi | ||||||
| @ -183,6 +189,5 @@ _namecom_get_root() { | |||||||
|     p=$i |     p=$i | ||||||
|     i=$(_math "$i" + 1) |     i=$(_math "$i" + 1) | ||||||
|   done |   done | ||||||
|   fi |  | ||||||
|   return 1 |   return 1 | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user