Browse Source
Remove the no-op endpoint identification call from the reactor-netty TLS contexts
pull/16341/head
Viacheslav Klimov
2 months ago
Failed to extract signature
3 changed files with
3 additions and
3 deletions
-
common/integration/http-integrations/src/main/java/org/thingsboard/integration/http/loriot/LoriotIntegration.java
-
common/integration/http-integrations/src/main/java/org/thingsboard/integration/http/thingpark/ThingParkIntegration.java
-
common/report/src/main/java/org/thingsboard/server/report/util/WebReportClient.java
|
|
|
@ -72,7 +72,7 @@ public class LoriotIntegration extends BasicHttpIntegration<JsonHttpIntegrationM |
|
|
|
createApplicationOutputIfNotExist(); |
|
|
|
} |
|
|
|
if (loriotConfiguration.isSendDownlink()) { |
|
|
|
SslContext sslContext = SslContextBuilder.forClient().endpointIdentificationAlgorithm(null).build(); |
|
|
|
SslContext sslContext = SslContextBuilder.forClient().build(); |
|
|
|
HttpClient httpClient = HttpClient.create() |
|
|
|
.runOn(context.getEventLoopGroup()) |
|
|
|
.secure(t -> t.sslContext(sslContext)); |
|
|
|
|
|
|
|
@ -69,7 +69,7 @@ public class ThingParkIntegration extends AbstractHttpIntegration<ThingParkInteg |
|
|
|
if (downlinkConverter != null) { |
|
|
|
downlinkUrl = json.has("downlinkUrl") ? json.get("downlinkUrl").asText() : DEFAULT_DOWNLINK_URL; |
|
|
|
|
|
|
|
SslContext sslContext = SslContextBuilder.forClient().endpointIdentificationAlgorithm(null).build(); |
|
|
|
SslContext sslContext = SslContextBuilder.forClient().build(); |
|
|
|
HttpClient httpClient = HttpClient.create() |
|
|
|
.runOn(context.getEventLoopGroup()) |
|
|
|
.secure(t -> t.sslContext(sslContext)); |
|
|
|
|
|
|
|
@ -67,7 +67,7 @@ public class WebReportClient { |
|
|
|
.runOn(eventLoopGroup) |
|
|
|
.secure(t -> { |
|
|
|
try { |
|
|
|
t.sslContext(SslContextBuilder.forClient().endpointIdentificationAlgorithm(null).build()); |
|
|
|
t.sslContext(SslContextBuilder.forClient().build()); |
|
|
|
} catch (SSLException e) { |
|
|
|
throw new RuntimeException(e); |
|
|
|
} |
|
|
|
|