Skip to content

Commit

Permalink
Check if web is actually enabled before starting it on same port.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisoelkers committed Jul 25, 2016
1 parent eb5e2db commit b31be88
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected void startUp() throws Exception {
.<Resource>builder()
.addAll(prefixPluginResources(PLUGIN_PREFIX, pluginRestResources));

if (configuration.isRestAndWebOnSamePort()) {
if (configuration.isWebEnable() && configuration.isRestAndWebOnSamePort()) {
additionalResourcesBuilder = additionalResourcesBuilder
.addAll(prefixResources(configuration.getWebPrefix(), ImmutableSet.of(webInterfaceAssetsResource, appConfigResource)));
}
Expand All @@ -103,7 +103,7 @@ protected void startUp() throws Exception {

LOG.info("Started REST API at <{}>", configuration.getRestListenUri());

if (configuration.isRestAndWebOnSamePort()) {
if (configuration.isWebEnable() && configuration.isRestAndWebOnSamePort()) {
LOG.info("Started Web Interface at <{}>", configuration.getWebListenUri());
}
}
Expand Down

0 comments on commit b31be88

Please sign in to comment.