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"