diff --git a/pkg/mcclient/mcclient.go b/pkg/mcclient/mcclient.go index 9966f6c49b..deccd06974 100644 --- a/pkg/mcclient/mcclient.go +++ b/pkg/mcclient/mcclient.go @@ -79,6 +79,10 @@ func (this *Client) HttpClient() *http.Client { return this.httpconn } +func (this *Client) SetHttpTransportProxyFunc(proxyFunc httputils.TransportProxyFunc) { + httputils.SetClientProxyFunc(this.httpconn, proxyFunc) +} + func (this *Client) SetDebug(debug bool) { this.debug = debug }