1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

client: fix cast to http.Transport when using TransportWrapper

Signed-off-by: Sebastiao Pamplona <sebastiaodsrp@gmail.com>
This commit is contained in:
Sebastiao Pamplona
2023-01-30 11:42:48 +00:00
committed by Stéphane Graber
parent 1e882f91a2
commit 4a6d84e30c
4 changed files with 32 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ type ConnectionArgs struct {
HTTPClient *http.Client
// TransportWrapper wraps the *http.Transport set by lxd
TransportWrapper func(*http.Transport) http.RoundTripper
TransportWrapper func(*http.Transport) HTTPTransporter
// Controls whether a client verifies the server's certificate chain and host name.
InsecureSkipVerify bool