change config for certs path (#57)
Bug fix. Changing hardcoded certificate to one provided by configuration object.
This commit is contained in:
parent
a43dc81ea8
commit
dc327bebad
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ func defaultTTransport(urlstr string, timeoutms int, config *RealisConfig) (thri
|
||||||
tlsConfig.InsecureSkipVerify = true
|
tlsConfig.InsecureSkipVerify = true
|
||||||
}
|
}
|
||||||
if config.certspath != "" {
|
if config.certspath != "" {
|
||||||
rootCAs, err := GetCerts("examples/certs")
|
rootCAs, err := GetCerts(config.certspath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
config.logger.Println("error occured couldn't fetch certs")
|
config.logger.Println("error occured couldn't fetch certs")
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue