File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
kafka-ui-api/src/main/java/com/provectus/kafka/ui/util Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 33import com .google .common .annotations .VisibleForTesting ;
44import java .time .Duration ;
55import lombok .extern .slf4j .Slf4j ;
6- import org .springframework .web .reactive .function .client .WebClient ;
76import reactor .core .publisher .Mono ;
87
98@ Slf4j
@@ -31,7 +30,7 @@ public GithubReleaseInfo() {
3130
3231 @ VisibleForTesting
3332 GithubReleaseInfo (String url ) {
34- this .refreshMono = WebClient . create ()
33+ this .refreshMono = new WebClientConfigurator (). build ()
3534 .get ()
3635 .uri (url )
3736 .exchangeToMono (resp -> resp .bodyToMono (GithubReleaseDto .class ))
Original file line number Diff line number Diff line change 55import com .fasterxml .jackson .datatype .jsr310 .JavaTimeModule ;
66import com .provectus .kafka .ui .config .ClustersProperties ;
77import com .provectus .kafka .ui .exception .ValidationException ;
8- import io .netty .buffer .ByteBufAllocator ;
9- import io .netty .handler .ssl .JdkSslContext ;
108import io .netty .handler .ssl .SslContext ;
119import io .netty .handler .ssl .SslContextBuilder ;
12- import io .netty .handler .ssl .SslProvider ;
1310import java .io .FileInputStream ;
1411import java .security .KeyStore ;
1512import java .util .function .Consumer ;
@@ -93,7 +90,12 @@ private WebClientConfigurator configureSsl(
9390 // Create webclient
9491 SslContext context = contextBuilder .build ();
9592
96- builder .clientConnector (new ReactorClientHttpConnector (HttpClient .create ().secure (t -> t .sslContext (context ))));
93+ var httpClient = HttpClient
94+ .create ()
95+ .secure (t -> t .sslContext (context ))
96+ .proxyWithSystemProperties ();
97+
98+ builder .clientConnector (new ReactorClientHttpConnector (httpClient ));
9799 return this ;
98100 }
99101
You can’t perform that action at this time.
0 commit comments