diff --git a/rpc/http.go b/rpc/http.go index bbabe15bad..074c57ab1a 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -137,6 +137,7 @@ func DialHTTPWithClient(endpoint string, client *http.Client) (*Client, error) { } var cfg clientConfig + cfg.httpClient = client fn := newClientTransportHTTP(endpoint, &cfg) return newClient(context.Background(), fn) }