Skip to content

Commit

Permalink
fix default port logic
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jun 30, 2020
1 parent 5a3fd9c commit 71a27bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/server/elasticsearch/client/client_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const convertHost = (
): NodeOptions => {
const url = new URL(host);
const isHTTPS = url.protocol === 'https:';
url.port = url.port ?? isHTTPS ? '443' : '80';
url.port = url.port ?? (isHTTPS ? '443' : '80');
if (needAuth && username && password) {
url.username = username;
url.password = password;
Expand Down

0 comments on commit 71a27bb

Please sign in to comment.