mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f42348e18f
The `--userland-proxy` daemon flag makes it possible to rely on hairpin NAT and additional iptables routes instead of userland proxy for port publishing and inter-container communication. Usage of the userland proxy remains the default as hairpin NAT is unsupported by older kernels. Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
19 lines
514 B
Go
19 lines
514 B
Go
package network
|
|
|
|
import "github.com/docker/docker/nat"
|
|
|
|
type Settings struct {
|
|
IPAddress string
|
|
IPPrefixLen int
|
|
MacAddress string
|
|
LinkLocalIPv6Address string
|
|
LinkLocalIPv6PrefixLen int
|
|
GlobalIPv6Address string
|
|
GlobalIPv6PrefixLen int
|
|
Gateway string
|
|
IPv6Gateway string
|
|
Bridge string
|
|
PortMapping map[string]map[string]string // Deprecated
|
|
Ports nat.PortMap
|
|
HairpinMode bool
|
|
}
|