mirror of
				https://github.com/byReqz/netdiscover-docker.git
				synced 2025-11-04 05:51:31 +00:00 
			
		
		
		
	add passive launch option
This commit is contained in:
		@@ -8,5 +8,4 @@ RUN tar xvfz gotty_linux_amd64.tar.gz
 | 
			
		||||
ENV TERM=xterm
 | 
			
		||||
COPY run.sh ./run.sh
 | 
			
		||||
RUN chmod +x ./run.sh
 | 
			
		||||
RUN tmux new-session -d -A -s netdiscover netdiscover
 | 
			
		||||
ENTRYPOINT ["/run.sh"]
 | 
			
		||||
 
 | 
			
		||||
@@ -10,3 +10,4 @@ services:
 | 
			
		||||
#     - port=1234
 | 
			
		||||
#     - userpass=user:pass
 | 
			
		||||
#     - title=1234
 | 
			
		||||
#     - passive=true
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								run.sh
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								run.sh
									
									
									
									
									
								
							@@ -9,5 +9,8 @@ fi
 | 
			
		||||
if [[ -z "$title" ]];then
 | 
			
		||||
	title=netdiscover-docker
 | 
			
		||||
fi
 | 
			
		||||
if [[ "$passive" == "true" ]];then
 | 
			
		||||
	passivearg="-p"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
./gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s netdiscover netdiscover
 | 
			
		||||
./gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s netdiscover netdiscover $passivearg
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user