Skip to content

Commit

Permalink
CB-4824 return network handlers for some embedded drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
yagudin10 committed Mar 6, 2024
1 parent 9934ed9 commit c7abe17
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ public String[] getApplicableAuthModels() {

@Property
public String[] getApplicableNetworkHandlers() {
if (driver.isEmbedded()) {
return new String[0];
if (!driver.isEmbedded() || CommonUtils.toBoolean(driver.getDriverParameter(DBConstants.DRIVER_PARAM_ENABLE_NETWORK_PARAMETERS))) {
return NetworkHandlerRegistry.getInstance().getDescriptors(driver).stream()
.filter(h -> !h.isDesktopHandler())
.map(NetworkHandlerDescriptor::getId).toArray(String[]::new);
}
return NetworkHandlerRegistry.getInstance().getDescriptors(driver).stream()
.filter(h -> !h.isDesktopHandler())
.map(NetworkHandlerDescriptor::getId).toArray(String[]::new);
return new String[0];
}

@Property
Expand Down

0 comments on commit c7abe17

Please sign in to comment.