From 8ac565bc38aa59a17c8428e27261f8c1590e81d0 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Tue, 31 Mar 2015 09:56:42 -0700 Subject: [PATCH] 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. --- etcdctl/command/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etcdctl/command/util.go b/etcdctl/command/util.go index e2aa66702..7ffb80554 100644 --- a/etcdctl/command/util.go +++ b/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 peerstr == "" { - peerstr = "127.0.0.1:4001" + peerstr = "127.0.0.1:4001,127.0.0.1:2379" } return strings.Split(peerstr, ",")