diff --git a/src/System.Private.ServiceModel/src/System/ServiceModel/Channels/HttpChannelFactory.cs b/src/System.Private.ServiceModel/src/System/ServiceModel/Channels/HttpChannelFactory.cs index 3cdc4e45e3a..2a41dd47830 100644 --- a/src/System.Private.ServiceModel/src/System/ServiceModel/Channels/HttpChannelFactory.cs +++ b/src/System.Private.ServiceModel/src/System/ServiceModel/Channels/HttpChannelFactory.cs @@ -100,7 +100,9 @@ internal HttpChannelFactory(HttpTransportBindingElement bindingElement, BindingC TransferMode = bindingElement.TransferMode; _keepAliveEnabled = bindingElement.KeepAliveEnabled; - if (bindingElement.ProxyAddress != null) + if (bindingElement.Proxy != null) + _proxy = bindingElement.Proxy; + else if (bindingElement.ProxyAddress != null) { if (bindingElement.UseDefaultWebProxy) {