Skip to content

Commit

Permalink
fix(bug): Extension should not bind to its hostname (opensearch-proje…
Browse files Browse the repository at this point in the history
…ct#830)

Signed-off-by: Tarun Samanta <[email protected]>
  • Loading branch information
SamantaTarun authored Jun 21, 2023
1 parent 72cc962 commit 54832bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/opensearch/sdk/ExtensionsRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ protected ExtensionsRunner(Extension extension) throws IOException {
ExtensionSettings extensionSettings = extension.getExtensionSettings();
Settings.Builder settingsBuilder = Settings.builder()
.put(NODE_NAME_SETTING, extensionSettings.getExtensionName())
.put(TransportSettings.BIND_HOST.getKey(), extensionSettings.getHostAddress())
.put(TransportSettings.PUBLISH_HOST.getKey(), extensionSettings.getHostAddress())
.putList(TransportSettings.BIND_HOST.getKey(), Collections.emptyList())
.put(TransportSettings.PORT.getKey(), extensionSettings.getHostPort());
boolean sslEnabled = extensionSettings.getSecuritySettings().containsKey(SSL_TRANSPORT_ENABLED)
&& "true".equals(extensionSettings.getSecuritySettings().get(SSL_TRANSPORT_ENABLED));
Expand Down

0 comments on commit 54832bc

Please sign in to comment.