mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 21:33:19 -06:00
goimports
This commit is contained in:
parent
d11271fe99
commit
5b27e68bcf
|
|
@ -98,7 +98,7 @@ func NewBaseDendrite(cfg *config.Dendrite, componentName string, enableHTTPAPIs
|
||||||
|
|
||||||
client := http.Client{Timeout: HTTPClientTimeout}
|
client := http.Client{Timeout: HTTPClientTimeout}
|
||||||
if cfg.Proxy != nil {
|
if cfg.Proxy != nil {
|
||||||
client.Transport = &http.Transport{Proxy: http.ProxyURL(&url.URL {
|
client.Transport = &http.Transport{Proxy: http.ProxyURL(&url.URL{
|
||||||
Scheme: cfg.Proxy.Protocol,
|
Scheme: cfg.Proxy.Protocol,
|
||||||
Host: fmt.Sprintf("%s:%d", cfg.Proxy.Host, cfg.Proxy.Port),
|
Host: fmt.Sprintf("%s:%d", cfg.Proxy.Host, cfg.Proxy.Port),
|
||||||
})}
|
})}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue