Remove network settings when security is disabled

When security is disabled, we currently set the transport and HTTP type
to Netty 4. However, this is unnecessary as these are the default
settings so this commit removes these explicit settings.

Relates elastic/elasticsearch#3065

Original commit: elastic/x-pack-elasticsearch@afa360ceec
This commit is contained in:
Jason Tedor 2016-08-08 14:46:23 -04:00 committed by GitHub
parent 129a2e594e
commit b2be99a869
1 changed files with 1 additions and 4 deletions

View File

@ -338,10 +338,7 @@ public class Security implements ActionPlugin, IngestPlugin {
public Settings additionalSettings() {
if (enabled == false) {
return Settings.builder()
.put(NetworkModule.HTTP_TYPE_KEY, "netty4")
.put(NetworkModule.TRANSPORT_TYPE_KEY, "netty4")
.build();
return Settings.EMPTY;
}
return additionalSettings(settings);