Skip to content

Commit

Permalink
Merge pull request #435 from zowe/AdarshdExternalPort
Browse files Browse the repository at this point in the history
Update util.js- Fixing the code to get the zoweExternalPort
  • Loading branch information
1000TurquoisePogs authored Jun 21, 2022
2 parents 131f813 + b4aeec9 commit 3483a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ module.exports.makeRemoteUrl = function(destination, req, serverConfig) {
if (destination.includes('ZWE_EXTERNAL_PORT')) {
if (process.env.ZWE_zowe_externalPort) {
zoweExternalPort = process.env.ZWE_zowe_externalPort;
} if (process.env.ZWE_EXTERNAL_PORT) {
} else if (process.env.ZWE_EXTERNAL_PORT) {
zoweExternalPort = process.env.ZWE_EXTERNAL_PORT;
} else if (serverConfig.node.mediationLayer && serverConfig.node.mediationLayer.server && serverConfig.node.mediationLayer.server.gatewayPort) {
zoweExternalPort = serverConfig.node.mediationLayer.server.gatewayPort;
Expand Down

0 comments on commit 3483a30

Please sign in to comment.