Explorar o código

Merge pull request #10452 from jpbetz/automated-cherry-pick-of-#10443-origin-release-3.2

Automated cherry pick of #10443 to release 3.2
Joe Betz %!s(int64=7) %!d(string=hai) anos
pai
achega
e06761ed79
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      etcdctl/ctlv2/command/util.go

+ 1 - 1
etcdctl/ctlv2/command/util.go

@@ -103,7 +103,7 @@ func getDomainDiscoveryFlagValue(c *cli.Context) ([]string, error) {
 	// strip insecure connections
 	ret := []string{}
 	for _, ep := range eps {
-		if strings.HasPrefix("http://", ep) {
+		if strings.HasPrefix(ep, "http://") {
 			fmt.Fprintf(os.Stderr, "ignoring discovered insecure endpoint %q\n", ep)
 			continue
 		}