mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00

For overlay, l2bridge, and l2tunnel, if the user does not specify a host port, windows driver will select a random port for them. This matches linux behavior. For ics and nat networks the windows OS will choose the port. Signed-off-by: Pradip Dhara <pradipd@microsoft.com>
10 lines
256 B
Go
10 lines
256 B
Go
package portmapper
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
)
|
|
|
|
func newProxyCommand(proto string, hostIP net.IP, hostPort int, containerIP net.IP, containerPort int, proxyPath string) (userlandProxy, error) {
|
|
return nil, errors.New("proxy is unsupported on windows")
|
|
}
|