fix vpn function

This commit is contained in:
thek4n 2023-11-30 20:53:58 +03:00
parent 4c04649e21
commit 933e000645

View File

@ -126,7 +126,7 @@ vpn() {
systemctl --quiet is-active "$SERVICE" && \ systemctl --quiet is-active "$SERVICE" && \
(sudo systemctl stop "$SERVICE" && echo DOWN) || \ (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}')
) )
} }