bake: multi ips support for extra hosts
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -72,6 +72,11 @@ func TestToBuildkitExtraHosts(t *testing.T) {
|
||||
doc: "IPv6 localhost, non-canonical, eq sep",
|
||||
input: []string{`ipv6local=0:0:0:0:0:0:0:1`},
|
||||
},
|
||||
{
|
||||
doc: "Multi IPs",
|
||||
input: []string{`myhost=162.242.195.82,162.242.195.83`},
|
||||
expectedOut: `myhost=162.242.195.82,myhost=162.242.195.83`,
|
||||
},
|
||||
{
|
||||
doc: "IPv6 localhost, non-canonical, eq sep, brackets",
|
||||
input: []string{`ipv6local=[0:0:0:0:0:0:0:1]`},
|
||||
|
||||
Reference in New Issue
Block a user