From 267c45f904a40a060fb3f0502bb5a20b9a4bf790 Mon Sep 17 00:00:00 2001 From: Tom Hendrikx Date: Mon, 17 Jun 2013 11:49:31 +0200 Subject: [PATCH] Detect UDP conections too --- plugins/ipvs/ipvs_conn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ipvs/ipvs_conn b/plugins/ipvs/ipvs_conn index f458ee6a..ce5dc922 100755 --- a/plugins/ipvs/ipvs_conn +++ b/plugins/ipvs/ipvs_conn @@ -93,8 +93,8 @@ for IP in $IPLIST; do # If line number match the line number of the match listen ip, print the line... if [ "$N" -gt "$MATCH" ]; then - # ... except if the line contain TCP word (this start an other listen) - if ( echo $line | grep TCP > /dev/null ); then + # ... except if the line contain TCP or UDP word (this start an other listen) + if ( echo $line | grep -e TCP -e UDP > /dev/null ); then break fi