Browse Source

feat(dev): add udp query to query raw

pull/2293/head
Daniel Gibbs 6 years ago
parent
commit
b4eac064d2
  1. 14
      lgsm/functions/command_dev_query_raw.sh

14
lgsm/functions/command_dev_query_raw.sh

@ -56,3 +56,17 @@ if [ "${querystatus}" == "0" ]; then
else else
echo "tcp query FAIL" 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

Loading…
Cancel
Save