aboutsummaryrefslogtreecommitdiff
path: root/weed/command/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/server.go')
-rw-r--r--weed/command/server.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/weed/command/server.go b/weed/command/server.go
index 9f402c9f8..7ffabb321 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -168,6 +168,12 @@ func runServer(cmd *Command, args []string) bool {
*isStartingFiler = true
}
+ if *isStartingMasterServer {
+ _, peerList := checkPeers(*serverIp, *masterOptions.port, *masterOptions.portGrpc, *masterOptions.peers)
+ peers := strings.Join(pb.ToAddressStrings(peerList), ",")
+ masterOptions.peers = &peers
+ }
+
// ip address
masterOptions.ip = serverIp
masterOptions.ipBind = serverBindIp