Selaa lähdekoodia

etcdct: adopt new client port by default

etcdserver uses both 4001 and 2379 for serving client requests by
default. etcdctl supports both ports by default.
Xiang Li 10 vuotta sitten
vanhempi
commit
8ac565bc38
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      etcdctl/command/util.go

+ 1 - 1
etcdctl/command/util.go

@@ -65,7 +65,7 @@ func getPeersFlagValue(c *cli.Context) []string {
 
 
 	// If we still don't have peers, use a default
 	// If we still don't have peers, use a default
 	if peerstr == "" {
 	if peerstr == "" {
-		peerstr = "127.0.0.1:4001"
+		peerstr = "127.0.0.1:4001,127.0.0.1:2379"
 	}
 	}
 
 
 	return strings.Split(peerstr, ",")
 	return strings.Split(peerstr, ",")