1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Update firewall.go

This commit is contained in:
TheRedSpy15 2018-10-14 20:35:37 -04:00 committed by GitHub
parent 8b3d3cc91d
commit 7b422cc3f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ func firewallStateLinux() string { // might be very Ubuntu specific
cmd.Stdout = &o cmd.Stdout = &o
if err := cmd.Run(); err != nil { if err := cmd.Run(); err != nil {
panic(err.Error()) return "[red]NA[white]
} }
if strings.Contains(o.String(), "active") { if strings.Contains(o.String(), "active") {