Skip to content

Commit

Permalink
Update source/credentials_provider_ecs.c
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Graeb <graebm@amazon.com>
  • Loading branch information
waahm7 and graebm committed May 16, 2024
1 parent 3dffa1e commit b7b5e99
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/credentials_provider_ecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,8 @@ static bool s_is_valid_remote_host_ip(struct aws_host_address *host_address_ptr)
result |= aws_byte_cursor_eq(&address, &ecs_container_host_address);
result |= aws_byte_cursor_eq(&address, &eks_container_host_address);

} else if (host_address_ptr->record_type == AWS_ADDRESS_RECORD_TYPE_AAAA) { /* Check for both the short form and
long
form of an IPv6 address to be safe. */
} else if (host_address_ptr->record_type == AWS_ADDRESS_RECORD_TYPE_AAAA) {
/* Check for both the short form and long form of an IPv6 address to be safe. */
const struct aws_byte_cursor ipv6_loopback_address = aws_byte_cursor_from_c_str("::1");
const struct aws_byte_cursor ipv6_loopback_address_verbose = aws_byte_cursor_from_c_str("0:0:0:0:0:0:0:1");
const struct aws_byte_cursor eks_container_host_ipv6_address = aws_byte_cursor_from_c_str("fd00:ec2::23");
Expand Down

0 comments on commit b7b5e99

Please sign in to comment.