From aa928076f3e368a3659d3b6049c1e54fe619a39e Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Tue, 27 Nov 2007 18:05:22 +1300 Subject: [PATCH] If we specify the interface that's the one we should grep for the address of! --- testing/watch-port-80.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/watch-port-80.sh b/testing/watch-port-80.sh index 60cddf29..df492878 100755 --- a/testing/watch-port-80.sh +++ b/testing/watch-port-80.sh @@ -9,7 +9,7 @@ DUMP="tcp port ${PORT}" IPCLAUSE="" if [ "${IFACE}" != "any" ]; then - IP="`ip addr show dev wlan0 | grep ' inet ' | tr -s ' ' | cut -f3 -d' ' | cut -f1 -d'/'`" + IP="`ip addr show dev ${IFACE} | grep ' inet ' | tr -s ' ' | cut -f3 -d' ' | cut -f1 -d'/'`" IPCLAUSE=" and ((src host ${IP} and src port ${PORT}) or (dst host ${IP} and dst port ${PORT}))" fi