mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-13 09:53:10 -06:00
Don't verify self-signed AS certificates
This commit is contained in:
parent
54e953f149
commit
7a767e423d
|
|
@ -17,6 +17,7 @@ package workers
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
|
"crypto/tls"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
|
|
@ -67,6 +68,12 @@ func worker(db *storage.Database, ws types.ApplicationServiceWorkerState) {
|
||||||
// Grab the HTTP client for sending requests to app services
|
// Grab the HTTP client for sending requests to app services
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
Timeout: transactionTimeout,
|
Timeout: transactionTimeout,
|
||||||
|
// TODO: Verify certificates
|
||||||
|
Transport: &http.Transport{
|
||||||
|
TLSClientConfig: &tls.Config{
|
||||||
|
InsecureSkipVerify: true, // nolint: gas
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initial check for any leftover events to send from last time
|
// Initial check for any leftover events to send from last time
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue