Enforcing proxy port to be used when configured

revert-70aa11f8
prabathabey 10 years ago
parent e4fd0607e8
commit 9e5e3cf73d

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

Loading…
Cancel
Save