| 108 | } |
| 109 | |
| 110 | std::vector<std::string> getOpenVpnExeNames() |
| 111 | { |
| 112 | std::vector<std::string> ret; |
| 113 | std::error_code ec; |
| 114 | for (std::filesystem::directory_iterator it(WS_LINUX_INSTALL_DIR, ec), end; !ec && it != end; it.increment(ec)) { |
| 115 | std::string name = it->path().filename().string(); |
| 116 | if (name.find("openvpn") != std::string::npos) { |
| 117 | ret.push_back(name); |
| 118 | } |
| 119 | } |
| 120 | return ret; |
| 121 | } |
| 122 | |
| 123 | std::string getDnsScript(CmdDnsManager mgr) |
| 124 | { |
no test coverage detected