Use IPv6 address

This commit is contained in:
Tom Moulard 2022-09-08 11:20:09 +02:00 committed by GitHub
parent c84378d649
commit 52df1d63fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 1 deletions

View file

@ -77,6 +77,12 @@ func ipv4(ip string) func(*network.EndpointSettings) {
}
}
func ipv6(ip string) func(*network.EndpointSettings) {
return func(s *network.EndpointSettings) {
s.GlobalIPv6Address = ip
}
}
func swarmTask(id string, ops ...func(*swarm.Task)) swarm.Task {
task := &swarm.Task{
ID: id,