Skip to content

Commit 8beb9e2

Browse files
committed
chore: lint
1 parent 0c2ff49 commit 8beb9e2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

internal/machine/firewall/iptables_linux.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,16 @@ func createIptablesChains() error {
103103

104104
var addJumpRule []string
105105
if firstRejectRuleNum > 0 {
106-
addJumpRule = append([]string{"-t", string(iptables.Filter), "-I", "INPUT",
107-
strconv.Itoa(firstRejectRuleNum)}, jumpRule...)
106+
addJumpRule = append([]string{
107+
"-t", string(iptables.Filter),
108+
"-I", "INPUT",
109+
strconv.Itoa(firstRejectRuleNum),
110+
}, jumpRule...)
108111
} else {
109-
addJumpRule = append([]string{"-t", string(iptables.Filter), "-A", "INPUT"}, jumpRule...)
112+
addJumpRule = append([]string{
113+
"-t", string(iptables.Filter),
114+
"-A", "INPUT",
115+
}, jumpRule...)
110116
}
111117
if err = ipt.RawCombinedOutput(addJumpRule...); err != nil {
112118
return fmt.Errorf("add %s rule '%s': %w", iptBin, strings.Join(addJumpRule, " "), err)

0 commit comments

Comments
 (0)