Flip disable ssl flag for SimpleHostRoutingFilter. Fixes #2503.

This commit is contained in:
Ryan Baxter
2018-01-18 14:01:41 -05:00
parent c79ac8ba19
commit 1c79bd2646

View File

@@ -142,7 +142,7 @@ public class SimpleHostRoutingFilter extends ZuulFilter {
private void initialize() {
if(!customHttpClient) {
this.connectionManager = connectionManagerFactory.newConnectionManager(
this.sslHostnameValidationEnabled,
!this.sslHostnameValidationEnabled,
this.hostProperties.getMaxTotalConnections(),
this.hostProperties.getMaxPerRouteConnections(),
this.hostProperties.getTimeToLive(), this.hostProperties.getTimeUnit(),