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

Populate port mapping name to make endpoint port mapping work. #520

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion backends/iptables/iptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,6 @@ func (t *iptables) writeDNATRules(svcInfo *serviceInfo, svcName types.Namespaced
}

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

// 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
Loading