mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
When an IPv6 network is first created with no specific IPAM config, network inspect adds a CIDR range to the gateway address. After the daemon has been restarted, it's just a plain address. Once the daaemon's been restated, "info" becomes "config", and the address is reported correctly from "config". Make the IPv6 code to report the gateway from "info" use net.IPNet.IP instead of the whole net.IPNet - like the IPv4 code. Signed-off-by: Rob Murray <rob.murray@docker.com>