[status] fix: openvpn status display

This commit is contained in:
David JULIEN 2023-01-19 19:17:37 +01:00
parent 553556143f
commit 9a46c8d9af
1 changed files with 1 additions and 1 deletions

View File

@ -23,6 +23,6 @@ if [ "up" = "$eth" ]; then
str="$(printf "%s / " "$str")"
fi
vpn="$(ip route | head -n1 | rev | cut -d' ' -f2 | rev)"
[ "tun0" = "$vpn" -o "tap0" = "$vpn" ] && str="$(printf "%s " "$str")"
[ "tun0" = "$vpn" -o "tap0" = "$vpn" ] && str="$(printf "%s / " "$str")"
printf " %s " "$str"