Use default transport for appservice traffc

This commit is contained in:
Neil Alexander 2021-03-05 13:22:04 +00:00
parent 05ec2e6dc7
commit fdb45dbea7
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -297,6 +297,7 @@ func (b *BaseDendrite) CreateAppserviceClient() *gomatrixserverlib.Client {
opts := []gomatrixserverlib.ClientOption{
gomatrixserverlib.WithSkipVerify(b.Cfg.AppServiceAPI.DisableTLSValidation),
gomatrixserverlib.WithTimeout(time.Second * 60),
gomatrixserverlib.WithTransport(http.DefaultTransport),
}
if b.Cfg.Global.DNSCache.Enabled {
opts = append(opts, gomatrixserverlib.WithDNSCache(b.DNSCache))