IsInternalPort returns true if the port is internal.
(port *tunnels.TunnelPort)
| 385 | |
| 386 | // IsInternalPort returns true if the port is internal. |
| 387 | func IsInternalPort(port *tunnels.TunnelPort) bool { |
| 388 | for _, label := range port.Labels { |
| 389 | if strings.EqualFold(label, InternalPortLabel) { |
| 390 | return true |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | return false |
| 395 | } |
| 396 | |
| 397 | // convertIntToUint16 converts the given int to a uint16. |
| 398 | func convertIntToUint16(port int) (uint16, error) { |
no outgoing calls