Browse Source

add back logic to check master peers

fix https://github.com/chrislusf/seaweedfs/issues/2352
pull/2380/head
Chris Lu 3 years ago
parent
commit
62c2732fd1
  1. 6
      weed/command/server.go

6
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

Loading…
Cancel
Save