If a service has both TCP and UDP but the TCP port appears before in the range loop, it will be considered a UDP-only port and the forwarding will fail. Fix that by calculating the difference between UDP ports and TCP ports. Signed-off-by: Adrian Moreno <amorenoz@redhat.com> Kubernetes-commit: 21b598cbe752dc5d2a2bca0e46729c9e72d162a3 |
||
|---|---|---|
| .. | ||
| portforward.go | ||
| portforward_test.go | ||