Enforcing proxy port to be used when configured

4.x.x
prabathabey 9 years ago
parent e4fd0607e8
commit 9e5e3cf73d

@ -51,11 +51,14 @@ public class URLPrinterStartupHandler implements ServerStartupObserver {
String mgtConsoleTransport = CarbonUtils.getManagementTransport();
ConfigurationContextService configContextService =
DeviceManagementDataHolder.getInstance().getConfigurationContextService();
int httpsPort = CarbonUtils.getTransportPort(configContextService, mgtConsoleTransport);
int port = CarbonUtils.getTransportPort(configContextService, mgtConsoleTransport);
int httpsProxyPort =
CarbonUtils.getTransportProxyPort(configContextService.getServerConfigContext(),
mgtConsoleTransport);
return "https://" + hostName + ":" + httpsPort + "/mdm";
if (httpsProxyPort > 0) {
port = httpsProxyPort;
}
return "https://" + hostName + ":" + port + "/mdm";
}
}

Loading…
Cancel
Save