Skip to content

Commit

Permalink
Revert "fix(expose): properly order targetPort -> port" (#70)
Browse files Browse the repository at this point in the history
This reverts commit 899a459.

Signed-off-by: Jared Allard <jaredallard@hey.com>
  • Loading branch information
jaredallard authored Feb 3, 2021
1 parent 29c4c49 commit d4c0271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/expose/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func (p *ServiceForward) Start(ctx context.Context) error { //nolint:funlen
ports := make([]string, len(p.Ports))
for i, port := range p.Ports {
prt := int(port.TargetPort.IntVal)
ports[i] = fmt.Sprintf("%d:%d", prt, port.MappedPort)
ports[i] = fmt.Sprintf("%d:%d", port.MappedPort, prt)
p.log.Debugf("tunneling port %v", ports[i])
}

Expand Down

0 comments on commit d4c0271

Please sign in to comment.