mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
plugin/etcd: the etcd client adds the DialKeepAliveTime parameter (#6351)
This commit is contained in:
@@ -99,8 +99,9 @@ func etcdParse(c *caddy.Controller) (*Etcd, error) {
|
|||||||
|
|
||||||
func newEtcdClient(endpoints []string, cc *tls.Config, username, password string) (*etcdcv3.Client, error) {
|
func newEtcdClient(endpoints []string, cc *tls.Config, username, password string) (*etcdcv3.Client, error) {
|
||||||
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