From d3a3c3154e2acf25527a722af24ee92aeebfe20c Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Wed, 15 Nov 2017 10:14:21 -0800 Subject: [PATCH] Revert "embed: fix HTTPs + DNS SRV discovery" This reverts commit f79d5aaca475f6d36985856f2fba5b2ed3df7249. --- embed/config.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/embed/config.go b/embed/config.go index e3ae4f8e603..b274bc68ec8 100644 --- a/embed/config.go +++ b/embed/config.go @@ -331,9 +331,7 @@ func (cfg *Config) PeerURLsMapAndToken(which string) (urlsmap types.URLsMap, tok } clusterStr := strings.Join(clusterStrs, ",") if strings.Contains(clusterStr, "https://") && cfg.PeerTLSInfo.CAFile == "" { - // SRV targets have subdomains under the given DNSCluster, so wildcard matching - // is needed. - cfg.PeerTLSInfo.ServerName = "*." + cfg.DNSCluster + cfg.PeerTLSInfo.ServerName = cfg.DNSCluster } urlsmap, err = types.NewURLsMap(clusterStr) // only etcd member must belong to the discovered cluster.