flant / ovpn-admin

Simple web UI to manage OpenVPN users.
Apache License 2.0
1.39k stars 261 forks source link

Executing **openvpn-user revoke** and **openvpn-user restore** returns the error #274

Open NihilNull opened 5 months ago

NihilNull commented 5 months ago

Hi!

Lines 1056 and 1118 of main.go, typo in parameter name --db-path

Executing openvpn-user revoke and openvpn-user restore returns the error:

DEBU[0051] openvpn-user restore --db-path /etc/openvpn/script/users.db --user admin2 
DEBU[0051] exit status 1 : openvpn-user: error: unknown long flag '--db-path', try --help