Skip to content

Commit

Permalink
update with gofmt -s output (spacing issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
docsmooth committed Jul 19, 2024
1 parent bdd124d commit 2272abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/security/firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ func FirewallStealthState() string {

func firewallStateLinux() string { // might be very Ubuntu specific
user, _ := user.Current()
cmd := exec.Command("sudo", "/usr/sbin/ufw", "status")
cmd := exec.Command("sudo", "/usr/sbin/ufw", "status")

if strings.Contains(user.Username, "root") {
cmd = exec.Command("ufw", "status")
}
}

var o bytes.Buffer
cmd.Stdout = &o
Expand Down

0 comments on commit 2272abc

Please sign in to comment.