Changed matcher

This commit is contained in:
Jānis Jansons 2024-01-12 16:35:21 +02:00
parent ce89a2dbb6
commit bdb508675c

View File

@ -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"