mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 18:37:30 +00:00 
			
		
		
		
	minor, change debug info
This commit is contained in:
		
							parent
							
								
									34c27e0995
								
							
						
					
					
						commit
						251fc37c3d
					
				
							
								
								
									
										6
									
								
								le.sh
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								le.sh
									
									
									
									
									
								
							| @ -66,12 +66,12 @@ _base64() { | |||||||
| _ss() { | _ss() { | ||||||
|   _port="$1" |   _port="$1" | ||||||
|   if command -v "netstat" >/dev/null 2>&1 ; then |   if command -v "netstat" >/dev/null 2>&1 ; then | ||||||
|     _err "Using: netstat" |     _debug "Using: netstat" | ||||||
|     netstat -ntpl | grep :$_port" " |     netstat -ntpl | grep :$_port" " | ||||||
|     return 0 |     return 0 | ||||||
|   fi |   fi | ||||||
|   if command -v "ss" >/dev/null 2>&1 ; then |   if command -v "ss" >/dev/null 2>&1 ; then | ||||||
|     _err "Using: ss" |     _debug "Using: ss" | ||||||
|     ss -ntpl | grep :$_port" " |     ss -ntpl | grep :$_port" " | ||||||
|     return 0 |     return 0 | ||||||
|   fi |   fi | ||||||
| @ -635,7 +635,7 @@ issue() { | |||||||
|     fi |     fi | ||||||
|     _setopt "$DOMAIN_CONF"  "Le_HTTPPort"             "="  "$Le_HTTPPort" |     _setopt "$DOMAIN_CONF"  "Le_HTTPPort"             "="  "$Le_HTTPPort" | ||||||
|      |      | ||||||
|     netprc="$(_ss "$Le_HTTPPort")" |     netprc="$(_ss "$Le_HTTPPort" | grep "$Le_HTTPPort")" | ||||||
|     if [ "$netprc" ] ; then |     if [ "$netprc" ] ; then | ||||||
|       _err "$netprc" |       _err "$netprc" | ||||||
|       _err "tcp port $Le_HTTPPort is already used by $(echo "$netprc" | cut -d :  -f 4)" |       _err "tcp port $Le_HTTPPort is already used by $(echo "$netprc" | cut -d :  -f 4)" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user