Correct reproducer to pass

Skip inclusion of TCP control port, which makes the test failing. It is
not wanted in the test anyway.
This commit is contained in:
Petr Menšík 2023-01-30 19:00:01 +01:00
commit c9d17c4eb0

View file

@ -5,7 +5,7 @@
# Pause bind on loading this file
mkfifo _bind.nta
named -g -c <(echo "options { port 5300; listen-on { any; }; listen-on-v6 { any; }; };") -n 1 &
named -g -c <(echo "options { port 5300; listen-on { any; }; listen-on-v6 { any; }; }; controls {};") -n 1 &
NAMED_PID=$!
sleep 2
@ -20,6 +20,19 @@ TCP=$(lsof -n -p ${NAMED_PID} | grep 'TCP 127.0.0.' | wc -l)
UDP=$(lsof -n -p ${NAMED_PID} | grep 'UDP 127.0.0.' | wc -l)
echo "TCP: $TCP UDP: $UDP"
if [ "$DEBUG" = y ]; then
TCPL=$(lsof -n -p ${NAMED_PID} | grep 'TCP 127.0.0.')
UDPL=$(lsof -n -p ${NAMED_PID} | grep 'UDP 127.0.0.')
cat << EOF
TCP:
${TCPL}
UDP:
${UDPL}
EOF
fi
sleep 5
#echo "Done adding addresses, press ENTER to terminate."
#read