Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mneverov committed Jan 22, 2024
1 parent 51c9201 commit 46a10bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backends/iptables/iptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,7 @@ func (t *iptables) writeDNATRules(svcInfo *serviceInfo, svcName types.Namespaced
}

targetPort := t.getTargetPort(svcInfo, endpointPortMap, *epIP)

// DNAT to final destination.
// DNAT to final destination.
args = append(args, "-m", protocol, "-p", protocol, "-j", "DNAT", "--to-destination", net.JoinHostPort(*epIP, strconv.Itoa(targetPort)))
t.natRules.Write(args)
}
Expand Down

0 comments on commit 46a10bd

Please sign in to comment.