mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Use the bridge driver's iptables types to set up portmapping related iptables rules - instead of using iptables.Forward, which is bridge specific code in the iptables package. Remove iptables.Forward() and its unit test, the bridge driver's version is covered by TestAddPortMappings. Remove hairpinMode from iptables.ChainInfo hairpinMode relates to bridge driver specific behaviour, that is now implemented in the bridge driver. Signed-off-by: Rob Murray <rob.murray@docker.com>