mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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.
This commit is contained in:
parent
6d90d03bf0
commit
461c24e899
@ -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, ",")
|
||||
|
Loading…
x
Reference in New Issue
Block a user