From 933e000645db76b2b342a5052ac190787750ac1a Mon Sep 17 00:00:00 2001 From: thek4n Date: Thu, 30 Nov 2023 20:53:58 +0300 Subject: [PATCH] fix vpn function --- home/user/.config/bash/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/user/.config/bash/functions b/home/user/.config/bash/functions index e087558..cc20286 100644 --- a/home/user/.config/bash/functions +++ b/home/user/.config/bash/functions @@ -126,7 +126,7 @@ vpn() { systemctl --quiet is-active "$SERVICE" && \ (sudo systemctl stop "$SERVICE" && echo DOWN) || \ - (sudo systemctl start "$SERVICE" && ip -br a | grep wg0 | awk '{print $1":\t"$3}') + (sudo systemctl start "$SERVICE" && ip -br a | grep "$CONFIG" | awk '{print $1":\t"$3}') ) }