Changed matcher
This commit is contained in:
parent
ce89a2dbb6
commit
bdb508675c
@ -22,7 +22,7 @@
|
|||||||
VPN_CONNECTED=""
|
VPN_CONNECTED=""
|
||||||
|
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
VPN_CONNECTED="ifconfig | egrep -A1 utun3 | grep inet"
|
VPN_CONNECTED="ifconfig | egrep -A1 utun | grep 'inet 10.140.'"
|
||||||
fi
|
fi
|
||||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||||
VPN_CONNECTED="ifconfig | grep -E -A1 tun | grep inet"
|
VPN_CONNECTED="ifconfig | grep -E -A1 tun | grep inet"
|
||||||
|
Loading…
Reference in New Issue
Block a user