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