This commit is contained in:
Neil Alexander 2022-05-05 14:06:05 +01:00
parent 42f35a57ac
commit e4da04e75b
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 4 additions and 3 deletions

View file

@ -331,6 +331,7 @@ func (b *BaseDendrite) CreateClient() *gomatrixserverlib.Client {
}
opts := []gomatrixserverlib.ClientOption{
gomatrixserverlib.WithSkipVerify(b.Cfg.FederationAPI.DisableTLSValidation),
gomatrixserverlib.WithWellKnownSRVLookups(true),
}
if b.Cfg.Global.DNSCache.Enabled {
opts = append(opts, gomatrixserverlib.WithDNSCache(b.DNSCache))