Added option to show current connected clients

This commit is contained in:
piccinnigius 2021-06-28 16:45:51 +02:00
parent 2ab48f2265
commit 0385eb834e

View File

@ -1312,11 +1312,12 @@ function manageMenu() {
echo " 1) Add a new user" echo " 1) Add a new user"
echo " 2) Revoke existing user" echo " 2) Revoke existing user"
echo " 3) Remove OpenVPN" echo " 3) Remove OpenVPN"
echo " 4) Exit" echo " 4) List current connected users"
until [[ $MENU_OPTION =~ ^[1-4]$ ]]; do echo " 5) Exit"
read -rp "Select an option [1-4]: " MENU_OPTION until [[ $MENU_OPTION =~ ^[1-5]$ ]]; do
read -rp "Select an option [1-5]: " MENU_OPTION
done done
case $MENU_OPTION in case $MENU_OPTION in
1) 1)
newClient newClient
@ -1328,6 +1329,9 @@ function manageMenu() {
removeOpenVPN removeOpenVPN
;; ;;
4) 4)
cat /var/log/openvpn/status.log
;;
5)
exit 0 exit 0
;; ;;
esac esac