aboutsummaryrefslogtreecommitdiff
path: root/weed/command/master.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-03-17 14:57:07 -0700
committerGitHub <noreply@github.com>2022-03-17 14:57:07 -0700
commit01c48da6ce0ecb685c29a8e734f962bfb0cf8e97 (patch)
tree1dd0c5539e1cbe12b9411656679cf650c4948921 /weed/command/master.go
parent4042fdf3bb5dc9cab2f6df3911819678bbf03e01 (diff)
parent7ee38fa3a4ba4e849e77bde8a7356b299f9d4f7b (diff)
downloadseaweedfs-01c48da6ce0ecb685c29a8e734f962bfb0cf8e97.tar.xz
seaweedfs-01c48da6ce0ecb685c29a8e734f962bfb0cf8e97.zip
Merge pull request #2765 from bercknash/berck/fix_default_ips
The fixes for https://github.com/chrislusf/seaweedfs/issues/1937 had …
Diffstat (limited to 'weed/command/master.go')
-rw-r--r--weed/command/master.go2
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)