aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/proxy/persistent.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/pkg/proxy/persistent.go')
-rw-r--r--plugin/pkg/proxy/persistent.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/pkg/proxy/persistent.go b/plugin/pkg/proxy/persistent.go
index 2dc8bde71..49c9dd385 100644
--- a/plugin/pkg/proxy/persistent.go
+++ b/plugin/pkg/proxy/persistent.go
@@ -21,6 +21,7 @@ type Transport struct {
expire time.Duration // After this duration a connection is expired.
addr string
tlsConfig *tls.Config
+ proxyName string
dial chan string
yield chan *persistConn
@@ -28,7 +29,7 @@ type Transport struct {
stop chan bool
}
-func newTransport(addr string) *Transport {
+func newTransport(proxyName, addr string) *Transport {
t := &Transport{
avgDialTime: int64(maxDialTimeout / 2),
conns: [typeTotalCount][]*persistConn{},
@@ -38,6 +39,7 @@ func newTransport(addr string) *Transport {
yield: make(chan *persistConn),
ret: make(chan *persistConn),
stop: make(chan bool),
+ proxyName: proxyName,
}
return t
}