| 237 | } |
| 238 | |
| 239 | std::string startWireGuard(const std::string &pars) |
| 240 | { |
| 241 | bool useAmneziaWG; |
| 242 | deserializePars(pars, useAmneziaWG); |
| 243 | bool success = WireGuardController::instance().installService(useAmneziaWG); |
| 244 | spdlog::debug("startWireGuard: success = {}", success); |
| 245 | return serializeResult(success); |
| 246 | } |
| 247 | |
| 248 | std::string stopWireGuard(const std::string &pars) |
| 249 | { |
nothing calls this directly
no test coverage detected