Skip to content
Snippets Groups Projects
Verified Commit bf41a157 authored by David Beniamine's avatar David Beniamine
Browse files

Handle hosts without ips

parent 44542a92
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,10 @@ do
do
mac=$(echo $line | cut -d ' ' -f 2)
IPS=$(getip $mac | sed -e 's/ /,/g')
if [ -z "$IPS" ]
then
IPS="NA"
fi
echo "$line $IPS" >> $hostfile-$$
done < $hostfile
stdbuf -oL cat $hostfile-$$ | netcat $host $port
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment