Skip to content

Commit 51dc24f

Browse files
committed
fix: out was unused on darwin now
1 parent 5ad41cc commit 51dc24f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/meshnet/system/firewall/firewall_darwin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func newFirewall(ctx context.Context, opts *Options) (Firewall, error) {
3838
return nil, fmt.Errorf("touch anchor file: %w", err)
3939
}
4040
// Enable the packet filter
41-
out, err := common.ExecOutput(context.Background(), "pfctl", "-e")
41+
_, err = common.ExecOutput(context.Background(), "pfctl", "-e")
4242
if err != nil {
4343
if strings.Contains(err.Error(), "pf already enabled") {
4444
return &pfctlFirewall{

pkg/meshnet/system/firewall/firewall_freebsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func newFirewall(ctx context.Context, opts *Options) (Firewall, error) {
3838
return nil, fmt.Errorf("touch anchor file: %w", err)
3939
}
4040
// Enable the packet filter
41-
out, err := common.ExecOutput(context.Background(), "pfctl", "-e")
41+
_, err = common.ExecOutput(context.Background(), "pfctl", "-e")
4242
if err != nil {
4343
if strings.Contains(err.Error(), "pf already enabled") {
4444
return &pfctlFirewall{

0 commit comments

Comments
 (0)