mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
Use default transport for AS traffic
This commit is contained in:
parent
1ad96e2e2d
commit
81d75327f0
|
|
@ -297,6 +297,7 @@ func (b *BaseDendrite) CreateAppserviceClient() *gomatrixserverlib.Client {
|
||||||
opts := []gomatrixserverlib.ClientOption{
|
opts := []gomatrixserverlib.ClientOption{
|
||||||
gomatrixserverlib.WithSkipVerify(b.Cfg.AppServiceAPI.DisableTLSValidation),
|
gomatrixserverlib.WithSkipVerify(b.Cfg.AppServiceAPI.DisableTLSValidation),
|
||||||
gomatrixserverlib.WithTimeout(time.Second * 60),
|
gomatrixserverlib.WithTimeout(time.Second * 60),
|
||||||
|
gomatrixserverlib.WithTransport(http.DefaultTransport),
|
||||||
}
|
}
|
||||||
if b.Cfg.Global.DNSCache.Enabled {
|
if b.Cfg.Global.DNSCache.Enabled {
|
||||||
opts = append(opts, gomatrixserverlib.WithDNSCache(b.DNSCache))
|
opts = append(opts, gomatrixserverlib.WithDNSCache(b.DNSCache))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue