mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
plugin/etcd: the etcd client adds the DialKeepAliveTime parameter (#6351)
This commit is contained in:
@@ -101,6 +101,7 @@ func newEtcdClient(endpoints []string, cc *tls.Config, username, password string
|
|||||||
etcdCfg := etcdcv3.Config{
|
etcdCfg := etcdcv3.Config{
|
||||||
Endpoints: endpoints,
|
Endpoints: endpoints,
|
||||||
TLS: cc,
|
TLS: cc,
|
||||||
|
DialKeepAliveTime: etcdTimeout,
|
||||||
}
|
}
|
||||||
if username != "" && password != "" {
|
if username != "" && password != "" {
|
||||||
etcdCfg.Username = username
|
etcdCfg.Username = username
|
||||||
|
|||||||
Reference in New Issue
Block a user