diff options
| author | Berck Nash <berck@cloudflare.com> | 2022-03-17 15:25:25 -0600 |
|---|---|---|
| committer | Berck Nash <berck@cloudflare.com> | 2022-03-17 15:30:23 -0600 |
| commit | 7ee38fa3a4ba4e849e77bde8a7356b299f9d4f7b (patch) | |
| tree | 1dd0c5539e1cbe12b9411656679cf650c4948921 /weed/command/master.go | |
| parent | 4042fdf3bb5dc9cab2f6df3911819678bbf03e01 (diff) | |
| download | seaweedfs-7ee38fa3a4ba4e849e77bde8a7356b299f9d4f7b.tar.xz seaweedfs-7ee38fa3a4ba4e849e77bde8a7356b299f9d4f7b.zip | |
The fixes for https://github.com/chrislusf/seaweedfs/issues/1937 had a few problems:
(1) The help file says that in the absence of a ipBind being specified, that it will bind to the "ip" specified. Instead, it bound to localhost which broke the default configuration. This change implements the documented behavior instead.
(2) The new IAM filer ip address has no default. This instantiates it to the same as the filer IP. I'm not sure if there should be a corresponding iam.ip or iam.ipBind option added to the filer command?
Diffstat (limited to 'weed/command/master.go')
| -rw-r--r-- | weed/command/master.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/master.go b/weed/command/master.go index a9109bdb8..9e45c5037 100644 --- a/weed/command/master.go +++ b/weed/command/master.go @@ -127,7 +127,7 @@ func startMaster(masterOption MasterOptions, masterWhiteList []string) { *masterOption.portGrpc = 10000 + *masterOption.port } if *masterOption.ipBind == "" { - *masterOption.ipBind = "localhost" + *masterOption.ipBind = *masterOption.ip } myMasterAddress, peers := checkPeers(*masterOption.ip, *masterOption.port, *masterOption.portGrpc, *masterOption.peers) |
