Skip to content

Commit

Permalink
fix: out was unused on darwin now
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Nov 7, 2023
1 parent 5ad41cc commit 51dc24f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/meshnet/system/firewall/firewall_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func newFirewall(ctx context.Context, opts *Options) (Firewall, error) {
return nil, fmt.Errorf("touch anchor file: %w", err)
}
// Enable the packet filter
out, err := common.ExecOutput(context.Background(), "pfctl", "-e")
_, err = common.ExecOutput(context.Background(), "pfctl", "-e")
if err != nil {
if strings.Contains(err.Error(), "pf already enabled") {
return &pfctlFirewall{
Expand Down
2 changes: 1 addition & 1 deletion pkg/meshnet/system/firewall/firewall_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func newFirewall(ctx context.Context, opts *Options) (Firewall, error) {
return nil, fmt.Errorf("touch anchor file: %w", err)
}
// Enable the packet filter
out, err := common.ExecOutput(context.Background(), "pfctl", "-e")
_, err = common.ExecOutput(context.Background(), "pfctl", "-e")
if err != nil {
if strings.Contains(err.Error(), "pf already enabled") {
return &pfctlFirewall{
Expand Down

0 comments on commit 51dc24f

Please sign in to comment.