devcontainers / devcontainers/spec
Proposal: support forwarding UDP ports
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 5.7k
- Forks
- 496
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
> [!NOTE]
> I understand this feature may not be as simple as it sounds. It will likely mean changing the editors to support forwarding udp ports as the current implementations likely do not leverage docker for it.
>
> Anyway, I'm opening this issue to start the discussion because I haven't found one elsewhere.
It would be great if the following were possible:
```json
{
"forwardPorts": ["5683/udp"]
}
```
Or maybe:
```json
{
"forwardPorts": [5683],
"portsAttributes": {
"5683": {
"label": "CoAP",
"onAutoForward": "silent",
"protocol": "udp"
}
}
}
```
---
A workaround is to use the older `appPort`:
```json
{
"appPort": ["5683/udp"]
}
```
But `appPort` has limitations that `forwardPorts` don't have. For example, `appPort` ports cannot be labeled through `portAttributes`.
Guía de contribución
Línea de trabajo
Comienza revisando las definiciones de forwardPorts, portsAttributes y appPort de la especificación; después, examina las implementaciones del editor referenciadas en el issue. Compara la solución alternativa UDP existente para appPort con el comportamiento solicitado de forwardPorts y define el esquema compatible, el etiquetado, el manejo de protocolos y las expectativas de compatibilidad antes de la implementación.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker
- Área
- networking
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100