From 8beb9e2679461ec23db71d165dcab2a1cfc55af8 Mon Sep 17 00:00:00 2001 From: Pasha Sviderski Date: Mon, 4 Aug 2025 19:20:52 +1000 Subject: [PATCH] chore: lint --- internal/machine/firewall/iptables_linux.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/internal/machine/firewall/iptables_linux.go b/internal/machine/firewall/iptables_linux.go index e7300085..95555ca0 100644 --- a/internal/machine/firewall/iptables_linux.go +++ b/internal/machine/firewall/iptables_linux.go @@ -103,10 +103,16 @@ func createIptablesChains() error { var addJumpRule []string if firstRejectRuleNum > 0 { - addJumpRule = append([]string{"-t", string(iptables.Filter), "-I", "INPUT", - strconv.Itoa(firstRejectRuleNum)}, jumpRule...) + addJumpRule = append([]string{ + "-t", string(iptables.Filter), + "-I", "INPUT", + strconv.Itoa(firstRejectRuleNum), + }, jumpRule...) } else { - addJumpRule = append([]string{"-t", string(iptables.Filter), "-A", "INPUT"}, jumpRule...) + addJumpRule = append([]string{ + "-t", string(iptables.Filter), + "-A", "INPUT", + }, jumpRule...) } if err = ipt.RawCombinedOutput(addJumpRule...); err != nil { return fmt.Errorf("add %s rule '%s': %w", iptBin, strings.Join(addJumpRule, " "), err)