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.
release-2.1
Xiang Li 2015-03-31 09:56:42 -07:00
parent 2990c29a71
commit 8ac565bc38
1 changed files with 1 additions and 1 deletions

View File

@ -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, ",")