IsInternalPort returns true if the port is internal.
(port *tunnels.TunnelPort)
| 402 | |
| 403 | // IsInternalPort returns true if the port is internal. |
| 404 | func IsInternalPort(port *tunnels.TunnelPort) bool { |
| 405 | for _, label := range port.Labels { |
| 406 | if strings.EqualFold(label, InternalPortLabel) { |
| 407 | return true |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | return false |
| 412 | } |
| 413 | |
| 414 | // convertIntToUint16 converts the given int to a uint16. |
| 415 | func convertIntToUint16(port int) (uint16, error) { |
no outgoing calls