Merge pull request #277 from amnezia-vpn/bugfix/openvpn-path-linux

Fix path to OpenVPN executable for Linux
This commit is contained in:
pokamest 2023-08-08 16:09:56 -07:00 committed by GitHub
commit b71b87e6e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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