mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
main: correct peer-addr reference
This commit is contained in:
parent
b7c42b0d76
commit
bc7d372d5c
2
main.go
2
main.go
@ -259,7 +259,7 @@ func setClusterForDiscovery() error {
|
||||
return fmt.Errorf("both discovery and initial-cluster are set")
|
||||
}
|
||||
if set["discovery"] {
|
||||
apurls, err := pkg.URLsFromFlags(flag.CommandLine, "advertise-peer-urls", "addr", peerTLSInfo)
|
||||
apurls, err := pkg.URLsFromFlags(flag.CommandLine, "advertise-peer-urls", "peer-addr", peerTLSInfo)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user