mirror of
https://github.com/moby/moby.git
synced 2026-07-08 23:57:50 +00:00
The userland proxy uses unconnected UDP sockets to receive packets from anywhere, so enabling SO_REUSEADDR means that multiple sockets can bind the same port. This defeats the purpose of the portallocator, which is supposed to ensure that the port is free and not already in use (either by us, or by another process). So, do not enable SO_REUSEADDR for UDP sockets. Signed-off-by: Albin Kerouanton <albinker@gmail.com>