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}') ) }