From bdb508675c4c41d51f44bcaebb82bd4eb58860bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=81nis=20Jansons?= Date: Fri, 12 Jan 2024 16:35:21 +0200 Subject: [PATCH] Changed matcher --- bitbar-openconnect.6s.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbar-openconnect.6s.sh b/bitbar-openconnect.6s.sh index d115016..5a5ce5e 100755 --- a/bitbar-openconnect.6s.sh +++ b/bitbar-openconnect.6s.sh @@ -22,7 +22,7 @@ VPN_CONNECTED="" if [[ "$OSTYPE" == "darwin"* ]]; then - VPN_CONNECTED="ifconfig | egrep -A1 utun3 | grep inet" + VPN_CONNECTED="ifconfig | egrep -A1 utun | grep 'inet 10.140.'" fi if [[ "$OSTYPE" == "linux-gnu"* ]]; then VPN_CONNECTED="ifconfig | grep -E -A1 tun | grep inet"