Просмотр исходного кода

embed: set 'ClientCertAuthEnabled'

Gyu-Ho Lee 9 лет назад
Родитель
Сommit
be001c44e8
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      embed/etcd.go

+ 1 - 0
embed/etcd.go

@@ -116,6 +116,7 @@ func StartEtcd(inCfg *Config) (e *Etcd, err error) {
 		QuotaBackendBytes:       cfg.QuotaBackendBytes,
 		StrictReconfigCheck:     cfg.StrictReconfigCheck,
 		EnablePprof:             cfg.EnablePprof,
+		ClientCertAuthEnabled:   cfg.ClientTLSInfo.ClientCertAuth,
 	}
 
 	if e.Server, err = etcdserver.NewServer(srvcfg); err != nil {