mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 10:27:22 +00:00 
			
		
		
		
	compatible to GNU netcat
This commit is contained in:
		
							parent
							
								
									387c2eab57
								
							
						
					
					
						commit
						f76eb45217
					
				
							
								
								
									
										8
									
								
								le.sh
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								le.sh
									
									
									
									
									
								
							| @ -443,10 +443,14 @@ _startserver() { | ||||
|   if echo "$nchelp" | grep "\-q " >/dev/null ; then | ||||
|     _NC="nc -q 1 -l" | ||||
|   else | ||||
|     _NC="nc -l" | ||||
|     if echo "$nchelp" | grep "GNU netcat" >/dev/null && echo "$nchelp" | grep "\-c, \-\-close" >/dev/null ; then | ||||
|       _NC="nc -c -l" | ||||
|     else | ||||
|       _NC="nc -l" | ||||
|     fi | ||||
|   fi | ||||
| 
 | ||||
|   _debug "$_NC $Le_HTTPPort" | ||||
|   _debug "_NC" "$_NC" | ||||
| #  while true ; do | ||||
|     if [ "$DEBUG" ] ; then | ||||
|       if ! echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | $_NC -p $Le_HTTPPort -vv ; then | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user