MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / FirewallController

Method FirewallController

src/helper/macos/firewallcontroller.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35} // namespace
36
37FirewallController::FirewallController() : enabled_(false)
38{
39 // If firewall on boot is enabled, restore boot rules
40 if (Utils::isFileExists(WS_POSIX_CONFIG_DIR "/boot_pf.conf")) {
41 spdlog::info("Applying boot pfctl rules");
42 Utils::executeCommand("/sbin/pfctl", {"-e", "-f", WS_POSIX_CONFIG_DIR "/boot_pf.conf"});
43 }
44}
45
46FirewallController::~FirewallController()
47{

Callers

nothing calls this directly

Calls 2

isFileExistsFunction · 0.70
executeCommandFunction · 0.70

Tested by

no test coverage detected