Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit c2b0bdc

Browse files
committed
Fix firewall rule on BSD
1 parent d976c20 commit c2b0bdc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/exec/firewall_bsd.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ func addSpecificFirewallRule(ip net.IP, port uint16) error {
3636
}
3737

3838
routeCmd = exec.Command("pfctl", "-d")
39-
_, err = routeCmd.CombinedOutput()
40-
if err != nil {
41-
return fmt.Errorf("exec: %w", err)
42-
}
39+
_, _ = routeCmd.CombinedOutput()
4340

4441
routeCmd = exec.Command("pfctl", "-e")
4542
_, err = routeCmd.CombinedOutput()

0 commit comments

Comments
 (0)