Skip to content

Commit

Permalink
Merge pull request #532 from zowe/bugfix/http-https-address-merge
Browse files Browse the repository at this point in the history
Bugfix for https and http addresses merge
  • Loading branch information
1000TurquoisePogs authored Feb 2, 2024
2 parents 072abcb + f6bb567 commit 5b6422c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
All notable changes to the Zlux Server Framework package will be documented in this file..
This repo is part of the app-server Zowe Component, and the change logs here may appear on Zowe.org in that section.

## 2.15.0
- Bugfix: App-server could not run in HTTP mode for AT-TLS setup because it was not able to merge HTTPS and HTTP addresses. (#984)

## 2.14.0
- Bugfix: App-server could not load when multiple discovery servers were present and the app-server was unable to reach the first one specified. Now, the app-server will iterate through the list of servers until an accessible one is reached. (#522)
- Bugfix: App-server would not correctly detect when it was running in a high-availability configuration environment. (#521)
Expand Down
5 changes: 3 additions & 2 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,11 @@ module.exports.getBestHostname = function(zoweConfig) {
}

module.exports.getListeningAddresses = function(zoweConfig) {
let addrs = getHttpsListeningAddresses(zoweConfig);
let httpsAddrsCollection = getHttpsListeningAddresses(zoweConfig);
let addrs = [...httpsAddrsCollection];
let otherAddrs = getHttpListeningAddresses(zoweConfig);
otherAddrs.forEach((addr)=> {
if (addrs.indexOf(addr) == -1) { addrs.push(otherAddrs); }
if (addrs.indexOf(addr) == -1) { addrs.push(addr); }
});
return addrs;
}
Expand Down

0 comments on commit 5b6422c

Please sign in to comment.