Skip to content

Commit 5225aa5

Browse files
authored
Merge pull request #8 from linkerd/zd/fix-comment-formatting
Fix iptables comments ports format
2 parents 579f370 + a7441ab commit 5225aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iptables/iptables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func addRulesForInboundPortRedirect(firewallConfiguration FirewallConfiguration,
157157
func addRulesForIgnoredPorts(portsToIgnore []string, chainName string, commands []*exec.Cmd) []*exec.Cmd {
158158
for _, destinations := range makeMultiportDestinations(portsToIgnore) {
159159
log.Printf("Will ignore port(s) %s on chain %s", destinations, chainName)
160-
commands = append(commands, makeIgnorePorts(chainName, destinations, fmt.Sprintf("ignore-port-%s", destinations)))
160+
commands = append(commands, makeIgnorePorts(chainName, destinations, fmt.Sprintf("ignore-port-%s", strings.Join(destinations,","))))
161161
}
162162
return commands
163163
}

0 commit comments

Comments
 (0)