mirror of
https://github.com/traefik/traefik.git
synced 2025-10-28 15:01:15 +01:00
AWS ECS IPv6 Support
This commit is contained in:
parent
d6598f370c
commit
c50216919a
@ -317,8 +317,14 @@ func (p *Provider) listInstances(ctx context.Context, client *awsClient) ([]ecsI
|
|||||||
protocol: mapping.Protocol,
|
protocol: mapping.Protocol,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
privateIP := aws.ToString(container.NetworkInterfaces[0].PrivateIpv4Address)
|
||||||
|
if privateIP == "" {
|
||||||
|
privateIP = aws.ToString(container.NetworkInterfaces[0].Ipv6Address)
|
||||||
|
}
|
||||||
|
|
||||||
mach = &machine{
|
mach = &machine{
|
||||||
privateIP: aws.ToString(container.NetworkInterfaces[0].PrivateIpv4Address),
|
privateIP: privateIP,
|
||||||
ports: ports,
|
ports: ports,
|
||||||
state: ec2types.InstanceStateName(strings.ToLower(aws.ToString(task.LastStatus))),
|
state: ec2types.InstanceStateName(strings.ToLower(aws.ToString(task.LastStatus))),
|
||||||
healthStatus: task.HealthStatus,
|
healthStatus: task.HealthStatus,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user