Skip to content

Commit

Permalink
Fix using port in MinioClient
Browse files Browse the repository at this point in the history
  • Loading branch information
yeganemehr committed Apr 5, 2022
1 parent 0e3b0c9 commit 6796413
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dnj/minio-gateway",
"version": "0.0.7",
"version": "0.0.8",
"private": false,
"bin": "dist/index.js",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion src/Upstream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ export default class Upstream {
public getClient(): Minio.Client {
if (this.client !== null) {
this.client = new MinioClient({
endPoint: this.url.host,
endPoint: this.url.hostname,
port: this.url.port ? parseInt(this.url.port) : undefined,
accessKey: this.accessKey,
secretKey: this.secretKey,
useSSL: this.url.protocol === 'https',
Expand Down

0 comments on commit 6796413

Please sign in to comment.