Browse Source

v1: Disabled cert checking for upstream API

master
Patrick Gaskin 8 months ago
parent
commit
8c0bffa77d
Signed by: geek1011 GPG Key ID: A2FD79F68A2AB707
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      v1/drt/drt.go

+ 5
- 0
v1/drt/drt.go View File

@ -80,6 +80,11 @@ type keyValue map[string]string
func (c *APIClient) makeRequest(path string, params keyValue, target interface{}) error {
hc := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true, // cert expired on 20191201, but server is still up
},
},
Timeout: c.Timeout,
}

Loading…
Cancel
Save