mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-09 21:33:39 +00:00
Don't verify self-signed AS certificates
This commit is contained in:
parent
74591eb9b3
commit
ee5ec50dbe
1 changed files with 7 additions and 0 deletions
|
@ -18,6 +18,7 @@ package query
|
|||
|
||||
import (
|
||||
"context"
|
||||
"crypto/tls"
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
@ -106,6 +107,12 @@ func (a *AppServiceQueryAPI) RoomAliasExists(
|
|||
func makeHTTPClient() *http.Client {
|
||||
return &http.Client{
|
||||
Timeout: time.Second * 30,
|
||||
// TODO: Verify certificates
|
||||
Transport: &http.Transport{
|
||||
TLSClientConfig: &tls.Config{
|
||||
InsecureSkipVerify: true, // nolint: gas
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue