mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 17:24:20 -04:00
Fix forward metrics for backwards compatibility (#6178)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user