devcontainers / devcontainers/spec

Proposal: support forwarding UDP ports

Aperta
#643 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Nessun dato sulla lingua
Stelle
5.7k
Fork
496
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

> [!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`.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.