Skip to content

Commit

Permalink
Remove IsAmazonEndpoint check in IsValidEndpoint
Browse files Browse the repository at this point in the history
This is done to support all Amazon endpoints.
  • Loading branch information
kannappanr committed Jan 16, 2018
1 parent 9afc484 commit 6120e8c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,6 @@ export function isValidEndpoint(endpoint) {
if (!isValidDomain(endpoint) && !isValidIP(endpoint)) {
return false
}
// Endpoint matches amazon, make sure its 's3.amazonaws.com'
if (endpoint.match('.amazonaws.com$') || endpoint.match('.amazonaws.com.cn$')) {
if (!isAmazonEndpoint(endpoint)) {
return false
}
}
// Return true.
return true
}
Expand Down

0 comments on commit 6120e8c

Please sign in to comment.