File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
connector/src/main/scala/com/celonis/kafka/connect/ems/config Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -121,12 +121,14 @@ case class ProxiedHttpClientConfig(
121
121
new Proxy (proxyType.javaProxyType, proxyAddr)
122
122
}
123
123
124
- override def customiseHttpClient (builder : OkHttpClient .Builder ): OkHttpClient .Builder =
124
+ override def customiseHttpClient (builder : OkHttpClient .Builder ): OkHttpClient .Builder = {
125
+ builder.proxy(createProxyServer())
125
126
authentication match {
126
127
case Some (auth) if javaProxyType == JavaProxyType .HTTP => configureHttpProxyAuth(builder, auth)
127
128
case Some (auth) if javaProxyType == JavaProxyType .SOCKS => configureSocksProxyAuth(auth); builder
128
129
case _ => builder
129
130
}
131
+ }
130
132
131
133
private def configureSocksProxyAuth (auth : BasicAuthentication ): Unit =
132
134
JavaAuthenticator .setDefault(
You can’t perform that action at this time.
0 commit comments