Przeglądaj źródła

main: correct peer-addr reference

Jonathan Boulle 11 lat temu
rodzic
commit
bc7d372d5c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -259,7 +259,7 @@ func setClusterForDiscovery() error {
 		return fmt.Errorf("both discovery and initial-cluster are set")
 		return fmt.Errorf("both discovery and initial-cluster are set")
 	}
 	}
 	if set["discovery"] {
 	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 {
 		if err != nil {
 			return err
 			return err
 		}
 		}