diff --git a/client/client.go b/client/client.go index b63d4d6d4986ebc08f5be14d9d57ee2c8d9aa7d7..0649a69cc7863c4a80d81dd4e44d370abd7fb8d3 100644 --- a/client/client.go +++ b/client/client.go @@ -252,7 +252,8 @@ func (cli *Client) DaemonHost() string { // HTTPClient returns a copy of the HTTP client bound to the server func (cli *Client) HTTPClient() *http.Client { - return &*cli.client + c := *cli.client + return &c } // ParseHostURL parses a url string, validates the string is a host url, and