Plugins: Only configure plugin proxy transport once (#71735)
only configure plugin proxy transport once
This commit is contained in:
1 parent
7738a9846c
commit
b59ca7fb22
1 file changed
+5
-2
@@ -14,9 +14,12 @@ import (
|
||||
"github.com/grafana/grafana/pkg/web"
|
||||
)
|
||||
|
||||
var (
|
||||
once sync.Once
|
||||
pluginProxyTransport *http.Transport
|
||||
)
|
||||
|
||||
func (hs *HTTPServer) ProxyPluginRequest(c *contextmodel.ReqContext) {
|
||||
var once sync.Once
|
||||
var pluginProxyTransport *http.Transport
|
||||
once.Do(func() {
|
||||
pluginProxyTransport = &http.Transport{
|
||||
TLSClientConfig: &tls.Config{
|
||||
|
||||
Reference in new issue
Block a user