mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	use nmap Ncat for centOS
This commit is contained in:
		
							parent
							
								
									18629d0fdd
								
							
						
					
					
						commit
						a6f744edb1
					
				
							
								
								
									
										8
									
								
								le.sh
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								le.sh
									
									
									
									
									
								
							| @ -222,11 +222,15 @@ _setopt() { | ||||
| 
 | ||||
| _startserver() { | ||||
|   content="$1" | ||||
|   _NC="nc -q 1" | ||||
|   if nc -h | grep "nmap.org/ncat" >/dev/null ; then | ||||
|     _NC="nc" | ||||
|   fi | ||||
| #  while true ; do | ||||
|     if [ "$DEBUG" ] ; then | ||||
|       echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | nc -q 1 -l -p 80 | ||||
|       echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | $_NC -l -p 80 -vv | ||||
|     else | ||||
|       echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | nc -q 1 -l -p 80 > /dev/null | ||||
|       echo -e -n "HTTP/1.1 200 OK\r\n\r\n$content" | $_NC -l -p 80 > /dev/null | ||||
|     fi | ||||
| #  done | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user