From 583f770fcda5512765c93a9644822ca65f808359 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Thu, 19 Mar 2020 10:31:15 +0800 Subject: [PATCH] mcclient: add SetHttpTransportProxyFunc() --- pkg/mcclient/mcclient.go | 4 ++++ 1 file changed, 4 insertions(+) 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 }