Skip to content

Commit

Permalink
custom port
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed May 9, 2024
1 parent d3a48b3 commit d434146
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion source/credentials_provider_ecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,8 @@ static int s_credentials_provider_ecs_get_credentials_async(
if (wrapped_user_data == NULL) {
goto error;
}
/* No need to verify the host IP address if the connection is using HTTPS or a relative URI with an ECS host. */
/* No need to verify the host IP address if the connection is using HTTPS or the ECS container host (relative URI)
*/
if (impl->is_https || aws_string_eq(impl->host, s_ecs_host)) {
impl->function_table->aws_http_connection_manager_acquire_connection(
impl->connection_manager, s_ecs_on_acquire_connection, wrapped_user_data);
Expand Down
6 changes: 3 additions & 3 deletions tests/credentials_provider_ecs_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,10 +875,10 @@ static int s_credentials_provider_ecs_basic_success_uri_env(struct aws_allocator
.auth_token_file_content = "testToken",
.expected_auth_token = "testToken",
},
/* IPv4 loopback address*/
/* IPv4 loopback address */
{
.full_uri = "http://127.1.2.3:8080/credentials",
.expected_uri = "http://127.1.2.3:8080/credentials",
.full_uri = "http://127.1.2.3:456/credentials",
.expected_uri = "http://127.1.2.3:456/credentials",
},
/* IPv4 EKS container host address */
{
Expand Down

0 comments on commit d434146

Please sign in to comment.