mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -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) {
|
||||
etcdCfg := etcdcv3.Config{
|
||||
Endpoints: endpoints,
|
||||
TLS: cc,
|
||||
Endpoints: endpoints,
|
||||
TLS: cc,
|
||||
DialKeepAliveTime: etcdTimeout,
|
||||
}
|
||||
if username != "" && password != "" {
|
||||
etcdCfg.Username = username
|
||||
|
||||
Reference in New Issue
Block a user