Files
docker-cli/components/engine/daemon
Yong Tang 54575c4167 Fix issue in --ip6 validation for docker create
This fix tries to address the issue raised in comment:
https://github.com/docker/docker/pull/25943#discussion_r76843081
Previously, the validation for `ip6` is done by checking ParseIP().To16().
However, in case an IPv4 address or an IPv4-mapped Ipv6 address has been
provided, the validation will pass (should fail).

This fix first check if `--ip6` is passed with a valid IP address and returns
error for invalid IP addresses. It then check if an IPv4 or IPv4-mapped Ipv6
address is passed, and return error accordingly.

This fix adds two more cases in the tests. One for IPv4 address passed to `--ip6`
and another for Ipv4-mapped IPv6 address passed to `--ip6`. In both cases,
without this fix the validation will pass through.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 1e6eccae69bd9b1f65ec87c33a6a872c81f7fb23
Component: engine
2016-08-30 19:28:44 -07:00
..
2016-05-06 16:08:53 -07:00
2016-08-25 13:09:36 -04:00
2016-08-25 13:09:04 -04:00
2016-07-23 11:32:23 +08:00
2016-07-21 20:04:47 -07:00
2016-07-23 11:32:23 +08:00
2016-07-18 12:53:34 -06:00
2016-06-30 11:32:49 -07:00
2016-08-22 22:09:25 -04:00
2016-06-27 10:23:37 -07:00
2016-06-27 10:23:37 -07:00
2016-08-01 01:00:38 +08:00
2016-08-26 14:22:39 +08:00
2016-06-02 19:12:20 -07:00
2016-08-16 14:16:12 -04:00