mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Clean up the firewall manager check for if it is enabled. Now it returns almost instantly instead of waiting for a few seconds.
This commit is contained in:
@@ -148,8 +148,7 @@ bool Firewall::IsRunning()
|
||||
}
|
||||
|
||||
bool Firewall::IsEnabled(){
|
||||
ServiceManager serviceManager;
|
||||
return serviceManager.isEnabled( serviceManager.GetService("ipfw") );
|
||||
return (0 == system("sysrc -c firewall_enable=\"YES\"") );
|
||||
}
|
||||
|
||||
void Firewall::Start()
|
||||
|
||||
Reference in New Issue
Block a user