mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Enforcing proxy port to be used when configured
This commit is contained in:
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…
Reference in New Issue
Block a user