mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
362 Determine linux firewall status on the unambiguous term
This commit is contained in:
@@ -50,10 +50,10 @@ func firewallStateLinux() string { // might be very Ubuntu specific
|
||||
return "[red]NA[white]"
|
||||
}
|
||||
|
||||
if strings.Contains(o.String(), "active") {
|
||||
return "[green]Enabled[white]"
|
||||
} else {
|
||||
if strings.Contains(o.String(), "inactive") {
|
||||
return "[red]Disabled[white]"
|
||||
} else {
|
||||
return "[green]Enabled[white]"
|
||||
}
|
||||
} else {
|
||||
return "[red]NA[white]"
|
||||
|
||||
Reference in New Issue
Block a user