mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-24 02:24:39 +00:00
If we specify the interface that's the one we should grep for the address of!
This commit is contained in:
parent
045b369c69
commit
aa928076f3
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user