From 6870beb7f2011e48b69ec814edcf1ad7cd829a8e Mon Sep 17 00:00:00 2001 From: bairen Date: Thu, 8 Aug 2024 11:16:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20Bootstrap!=20=E6=B3=A8?= =?UTF-8?q?=E9=87=8ABootstrapChecks,=20=E5=9B=A0=E4=B8=BA=E4=BC=9A?= =?UTF-8?q?=E6=8A=A5=E9=94=99:=20:=20Unknown=20codebases=20xxx=20in=20poli?= =?UTF-8?q?cy=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/elasticsearch/bootstrap/Bootstrap.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java b/server/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java index 7eb730419ca24..df95a28fdeb88 100644 --- a/server/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java +++ b/server/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java @@ -207,18 +207,18 @@ public void run() { IfConfig.logIfNecessary(); // install SM after natives, shutdown hooks, etc. - try { - Security.configure(environment, BootstrapSettings.SECURITY_FILTER_BAD_DEFAULTS_SETTING.get(settings)); - } catch (IOException | NoSuchAlgorithmException e) { - throw new BootstrapException(e); - } +// try { +// Security.configure(environment, BootstrapSettings.SECURITY_FILTER_BAD_DEFAULTS_SETTING.get(settings)); +// } catch (IOException | NoSuchAlgorithmException e) { +// throw new BootstrapException(e); +// } node = new Node(environment) { @Override protected void validateNodeBeforeAcceptingRequests( final BootstrapContext context, final BoundTransportAddress boundTransportAddress, List checks) throws NodeValidationException { - BootstrapChecks.check(context, boundTransportAddress, checks); + //BootstrapChecks.check(context, boundTransportAddress, checks); } }; }