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

Method inputJumpExists

src/helper/linux/firewallcontroller.cpp:485–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485bool FirewallController::inputJumpExists(bool isV6, const std::string &tag)
486{
487 const char *tool = isV6 ? "ip6tables" : "iptables";
488 return Utils::executeCommand(tool, {"--check", "INPUT", "-j", WS_PRODUCT_NAME_LOWER "_input", "-m", "comment", "--comment", tag.c_str()}) == 0;
489}
490
491bool FirewallController::disable()
492{

Callers

nothing calls this directly

Calls 1

executeCommandFunction · 0.70

Tested by

no test coverage detected