mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-28 01:03:10 -06:00
Correct field name
This commit is contained in:
parent
3485634910
commit
19397c7366
|
|
@ -270,7 +270,7 @@ func (b *BaseDendrite) CreateClient() *gomatrixserverlib.Client {
|
||||||
}
|
}
|
||||||
opts := []interface{}{}
|
opts := []interface{}{}
|
||||||
if b.Cfg.Global.DNSCache.Enabled {
|
if b.Cfg.Global.DNSCache.Enabled {
|
||||||
opts = append(opts, gomatrixserverlib.WithDNSCache{Cache: b.DNSCache})
|
opts = append(opts, gomatrixserverlib.WithDNSCache{DNSCache: b.DNSCache})
|
||||||
}
|
}
|
||||||
client := gomatrixserverlib.NewClient(
|
client := gomatrixserverlib.NewClient(
|
||||||
b.Cfg.FederationSender.DisableTLSValidation, opts...,
|
b.Cfg.FederationSender.DisableTLSValidation, opts...,
|
||||||
|
|
@ -290,7 +290,7 @@ func (b *BaseDendrite) CreateFederationClient() *gomatrixserverlib.FederationCli
|
||||||
}
|
}
|
||||||
opts := []interface{}{}
|
opts := []interface{}{}
|
||||||
if b.Cfg.Global.DNSCache.Enabled {
|
if b.Cfg.Global.DNSCache.Enabled {
|
||||||
opts = append(opts, gomatrixserverlib.WithDNSCache{Cache: b.DNSCache})
|
opts = append(opts, gomatrixserverlib.WithDNSCache{DNSCache: b.DNSCache})
|
||||||
}
|
}
|
||||||
client := gomatrixserverlib.NewFederationClientWithTimeout(
|
client := gomatrixserverlib.NewFederationClientWithTimeout(
|
||||||
b.Cfg.Global.ServerName, b.Cfg.Global.KeyID, b.Cfg.Global.PrivateKey,
|
b.Cfg.Global.ServerName, b.Cfg.Global.KeyID, b.Cfg.Global.PrivateKey,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue