You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Cannot publish same port with both TCP and UDP #992
If possible, I've reproduced the issue using the 'main' branch of this project
Steps to reproduce
Try to publish the same port number on UDP and TCP using, for example: -p 53:53/udp -p 53:53/tcp.
Current behavior
Refuses to start. Get the error shown in the log section below.
Expected behavior
It should allow forwarding TCP and UDP on the same port number. This is supported in Docker, Podman, etc and even by the underlying container backend it seems. I think it's just the validation done here that needs to account for the protocol as well. I fixed this locally myself and tested, but I haven't touched Swift in years so my approach was pretty ugly, I changed the Set to be strings and just shoved the protocol and port into a string. This is where Swift tuples with Hashable members being Hashable would really come in handy.
Activity
Fix port validation to allow same port for different protocols (apple…
Fix port validation to allow same port for different protocols (apple…
Squashed commit of the following:
Squashed commit of the following:
Squashed commit of the following:
Fix port validation to allow same port for different protocols (apple…