mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
e3c212c224
Use net.splitHostPort() instead of our own logic in func (p *PortBinding) FromString(s string) error. This means that IPv6 literals, including IPv4 in IPv6 literals, can now be parsed from the string form of PortBindings. Zoned addresses do not work - net.splitHostPort() parses them but net.ParseIP() cannot and returns an error. This is ok because we do not have a slot to store the zone name in PortBinding anyway. Signed-off-by: Euan Harris <euan.harris@docker.com> |
||
---|---|---|
.. | ||
types.go | ||
types_test.go |