added argument to insecure client

This commit is contained in:
ston1th 2020-06-01 14:11:01 +02:00
commit 84173ff489

View file

@ -93,9 +93,9 @@ func WithHTTPClient(httpClient *http.Client) ClientOption {
}
}
func WithInsecureClient() ClientOption {
func WithInsecureClient(insecure bool) ClientOption {
return func(client *Client) {
client.insecure = true
client.insecure = insecure
}
}