diff options
Diffstat (limited to 'weed/command/master.go')
| -rw-r--r-- | weed/command/master.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/master.go b/weed/command/master.go index 908299c8a..f20b2dc62 100644 --- a/weed/command/master.go +++ b/weed/command/master.go @@ -146,7 +146,7 @@ func startMaster(masterOption MasterOptions, masterWhiteList []string) { ms := weed_server.NewMasterServer(r, masterOption.toMasterOption(masterWhiteList), masterPeers) listeningAddress := util.JoinHostPort(*masterOption.ipBind, *masterOption.port) glog.V(0).Infof("Start Seaweed Master %s at %s", util.Version(), listeningAddress) - masterListener, masterLocalListner, e := util.NewIpAndLocalListeners(*masterOption.ipBind, *masterOption.port, 0) + masterListener, masterLocalListener, e := util.NewIpAndLocalListeners(*masterOption.ipBind, *masterOption.port, 0) if e != nil { glog.Fatalf("Master startup error: %v", e) } @@ -239,8 +239,8 @@ func startMaster(masterOption MasterOptions, masterWhiteList []string) { } httpS := &http.Server{Handler: r} - if masterLocalListner != nil { - go httpS.Serve(masterLocalListner) + if masterLocalListener != nil { + go httpS.Serve(masterLocalListener) } if useMTLS { |
