|
|
@ -3,17 +3,18 @@ package command |
|
|
|
import ( |
|
|
|
"context" |
|
|
|
"fmt" |
|
|
|
"net/http" |
|
|
|
"time" |
|
|
|
|
|
|
|
"github.com/aws/aws-sdk-go/aws" |
|
|
|
"github.com/chrislusf/seaweedfs/weed/glog" |
|
|
|
"github.com/chrislusf/seaweedfs/weed/pb" |
|
|
|
"github.com/chrislusf/seaweedfs/weed/pb/master_pb" |
|
|
|
"github.com/chrislusf/seaweedfs/weed/security" |
|
|
|
"github.com/chrislusf/seaweedfs/weed/server" |
|
|
|
weed_server "github.com/chrislusf/seaweedfs/weed/server" |
|
|
|
"github.com/chrislusf/seaweedfs/weed/util" |
|
|
|
"github.com/gorilla/mux" |
|
|
|
"google.golang.org/grpc/reflection" |
|
|
|
"net/http" |
|
|
|
"time" |
|
|
|
) |
|
|
|
|
|
|
|
var ( |
|
|
@ -112,7 +113,7 @@ func startMasterFollower(masterOptions MasterOptions) { |
|
|
|
option.IsFollower = true |
|
|
|
|
|
|
|
if *masterOptions.ipBind == "" { |
|
|
|
*masterOptions.ipBind = "localhost" |
|
|
|
*masterOptions.ipBind = *masterOptions.ip |
|
|
|
} |
|
|
|
|
|
|
|
r := mux.NewRouter() |
|
|
|