Skip to content
Permalink
Browse files

feat(dev): add udp query to query raw

  • Loading branch information...
dgibbs64 committed Apr 9, 2019
1 parent 8d54475 commit b4eac064d2513c5001dc0d0bbdf595a7633e4f83
Showing with 15 additions and 1 deletion.
  1. +15 −1 lgsm/functions/command_dev_query_raw.sh
@@ -55,4 +55,18 @@ if [ "${querystatus}" == "0" ]; then
echo "tcp query PASS"
else
echo "tcp query FAIL"
fi
fi

echo""
echo "================================="
echo "udp Raw Output"
echo "================================="
echo""
echo "bash -c 'exec 3<> /dev/udp/'${ip}'/'${queryport}''"
bash -c 'exec 3<> /dev/udp/'${ip}'/'${queryport}''
querystatus="$?"
if [ "${querystatus}" == "0" ]; then
echo "udp query PASS"
else
echo "udp query FAIL"
fi

0 comments on commit b4eac06

Please sign in to comment.
You can’t perform that action at this time.