Skip to content

Commit

Permalink
Disable transfer acceleration for AWS GovCloud. Amazon S3 Transfer Ac…
Browse files Browse the repository at this point in the history
…celeration is not available in the AWS GovCloud regions. Fix #10596.
  • Loading branch information
dkocher committed Feb 6, 2019
1 parent 92fdd88 commit 27e7239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3/src/main/java/ch/cyberduck/core/s3/S3Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public <T> T _getFeature(final Class<T> type) {
}
if(type == Bulk.class) {
// Only for AWS
if(S3Session.isAwsHostname(host.getHostname())) {
if(host.getHostname().endsWith(preferences.getProperty("s3.hostname.default"))) {
return (T) new S3BulkTransferAccelerationFeature(this, new S3TransferAccelerationService(this));
}
return (T) new DisabledBulkFeature();
Expand Down

0 comments on commit 27e7239

Please sign in to comment.