From 6993d610908465d6839b9c2b2f51f2a54fd82457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 13 Apr 2022 11:00:04 +0800 Subject: [PATCH] i3blocks: script vpn update --- scripts/i3blocks/vpn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/i3blocks/vpn b/scripts/i3blocks/vpn index 8bb6a93..a578438 100755 --- a/scripts/i3blocks/vpn +++ b/scripts/i3blocks/vpn @@ -3,7 +3,7 @@ INSTANCE="${BLOCK_INSTANCE:-}" # Check VPN status -GET_VPN=$(ip route | grep -E -- "tun0|wg0|$INSTANCE" | awk '{ print $3 }') +GET_VPN=$(ip route get 4.2.2.1 | grep -E -- "tun0|wg0|$INSTANCE" | awk '{ print $3 }') # Store status case $GET_VPN in