diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2021-03-05 16:40:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 16:40:32 +0000 |
commit | 6aa262ead804529f9e328302b0c2e2653ffffd09 (patch) | |
tree | 1f680c247a89965ef57eaa4177d559e17f675d4e /setup | |
parent | fe021d374256324cc5394599fc9e018caeadc5bb (diff) |
Use default transport for AS traffic (#1789)
* Use default transport for AS traffic
* Update gmsl and use default client
* Remove replace
* Fix go.sum
* Update gomatrixserverlib
* Go back to appservices managing their own HTTP clients because argh
* Add missing context
Diffstat (limited to 'setup')
-rw-r--r-- | setup/base.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/setup/base.go b/setup/base.go index f8a45409..e9aa2a45 100644 --- a/setup/base.go +++ b/setup/base.go @@ -290,22 +290,6 @@ func (b *BaseDendrite) CreateClient() *gomatrixserverlib.Client { return client } -// CreateAppserviceClient creates a new client for application services. -// It has a specific timeout and obeys TLS validation from the appservice -// config rather than the federation config. -func (b *BaseDendrite) CreateAppserviceClient() *gomatrixserverlib.Client { - opts := []gomatrixserverlib.ClientOption{ - gomatrixserverlib.WithSkipVerify(b.Cfg.AppServiceAPI.DisableTLSValidation), - gomatrixserverlib.WithTimeout(time.Second * 60), - } - if b.Cfg.Global.DNSCache.Enabled { - opts = append(opts, gomatrixserverlib.WithDNSCache(b.DNSCache)) - } - client := gomatrixserverlib.NewClient(opts...) - client.SetUserAgent(fmt.Sprintf("Dendrite/%s", internal.VersionString())) - return client -} - // CreateFederationClient creates a new federation client. Should only be called // once per component. func (b *BaseDendrite) CreateFederationClient() *gomatrixserverlib.FederationClient { |