Fix path to OpenVPN executable

We have service that runs OpenVPN on Linux.  We need to make same
path for client and service.
This commit is contained in:
Mykola Baibuz 2023-08-08 18:16:01 -04:00
parent 508356898f
commit 41cc518e20

View file

@ -219,7 +219,9 @@ QString Utils::openVpnExecPath()
#ifdef Q_OS_WIN
return Utils::executable("openvpn/openvpn", true);
#elif defined Q_OS_LINUX
return Utils::executable("openvpn", true);
// We have service that runs OpenVPN on Linux. We need to make same
// path for client and service.
return Utils::executable("../../client/bin/openvpn", true);
#else
return Utils::executable("/openvpn", true);
#endif