Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed May 8, 2024
1 parent c8ab029 commit 8d9bd9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/credentials_provider_ecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,11 @@ static void s_ecs_on_acquire_connection(struct aws_http_connection *connection,
}

/*
* * The host must use either HTTPS or the resolved IP address must satisfy one of the following:
* * 1. within the loopback CIDR (IPv4 127.0.0.0/8, IPv6 ::1/128)
* * 2. corresponds to the ECS container host 169.254.170.2
* * 3. corresponds to the EKS container host IPs (IPv4 169.254.170.23, IPv6 fd00:ec2::23)
* */
* The host must use either HTTPS or the resolved IP address must satisfy one of the following:
* 1. within the loopback CIDR (IPv4 127.0.0.0/8, IPv6 ::1/128)
* 2. corresponds to the ECS container host 169.254.170.2
* 3. corresponds to the EKS container host IPs (IPv4 169.254.170.23, IPv6 fd00:ec2::23)
*/
static bool s_is_valid_remote_host_ip(struct aws_host_address *host_address_ptr) {
bool result = false;
struct aws_byte_cursor address = aws_byte_cursor_from_string(host_address_ptr->address);
Expand Down

0 comments on commit 8d9bd9d

Please sign in to comment.