xmikos / qopenvpn

Simple OpenVPN GUI written in PyQt for systemd based distributions
GNU General Public License v3.0
43 stars 11 forks source link

Wrong directory with openVPN 2.4.0 #1

Closed kuroneko007 closed 7 years ago

kuroneko007 commented 7 years ago

As referenced here, openVPN 2.4.0 release changes the name of the systemd client service, and also the location of .conf files. This breaks current qopenvpn functionality as the hardcoded .conf directory is wrong (/etc/openvpn instead of /etc/openvpn/client)

olm52 commented 7 years ago

Waiting for the fix I have changed cmdline.extend(["systemctl", command, "openvpn@{}".format(settings.value("vpn_name"))]) to cmdline.extend(["systemctl", command, "openvpn-server@{}".format(settings.value("vpn_name"))]) and for f in sorted(glob.glob("/etc/openvpn/.conf")): to for f in sorted(glob.glob("/etc/openvpn/server/.conf")):

in /usr/lib/python3.6/site-packages/qopenvpn/main.py

kuroneko007 commented 7 years ago

In both cases where you have added 'server' should be 'client'. I've done the same fix locally.