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