| 582 | } |
| 583 | |
| 584 | std::string closeAllTcpConnections(const std::string &pars) |
| 585 | { |
| 586 | bool isKeepLocalSockets; |
| 587 | deserializePars(pars, isKeepLocalSockets); |
| 588 | |
| 589 | spdlog::debug("closeAllTcpConnections, KeepLocalSockets = {}", isKeepLocalSockets); |
| 590 | if (g_SplitTunnelingPars.isEnabled && g_SplitTunnelingPars.isVpnConnected) { |
| 591 | CloseTcpConnections::closeAllTcpConnections(isKeepLocalSockets, g_SplitTunnelingPars.isExclude, g_SplitTunnelingPars.apps); |
| 592 | } else { |
| 593 | CloseTcpConnections::closeAllTcpConnections(isKeepLocalSockets); |
| 594 | } |
| 595 | return std::string(); |
| 596 | } |
| 597 | |
| 598 | std::string getProcessesList(const std::string &pars) |
| 599 | { |
no test coverage detected