From f9ec8381b4cdf50292495a0f804f4823aec88533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Drouet?= Date: Wed, 5 Jul 2017 21:47:34 +0200 Subject: [PATCH] ignore UNDEF (not really connected) users --- plugins/vpn/openvpn_multi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/vpn/openvpn_multi b/plugins/vpn/openvpn_multi index c27a5c4f..bafcc230 100755 --- a/plugins/vpn/openvpn_multi +++ b/plugins/vpn/openvpn_multi @@ -51,7 +51,7 @@ sub config { print "out.cdef out,1,*\n"; while () { - next if ($_ =~ /CLIENT LIST/ || $_ =~ /Updated/ || $_ =~ /Common Name/); + next if ($_ =~ /CLIENT LIST/ || $_ =~ /Updated/ || $_ =~ /Common Name/ || $_ =~ /^UNDEF,/); last if ($_ =~ /ROUTING TABLE/); # client,IP:port,in,out,D M N hour Y @@ -101,7 +101,7 @@ sub report { open FILE, $statusfile or die $!; while () { - next if ($_ =~ /CLIENT LIST/ || $_ =~ /Updated/ || $_ =~ /Common Name/); + next if ($_ =~ /CLIENT LIST/ || $_ =~ /Updated/ || $_ =~ /Common Name/ || $_ =~ /^UNDEF,/); last if ($_ =~ /ROUTING TABLE/); # client,IP:port,in,out,D M N hour Y