diff --git a/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/Security.java b/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/Security.java index a317a82803f..245fbcff27e 100644 --- a/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/Security.java +++ b/elasticsearch/x-pack/security/src/main/java/org/elasticsearch/xpack/security/Security.java @@ -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);