aboutsummaryrefslogtreecommitdiff
path: root/weed/command/master.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-03-17 16:54:30 -0700
committerchrislu <chris.lu@gmail.com>2022-03-17 16:54:30 -0700
commit2824940ecf62073e00a4d7e2a069b693082b31cf (patch)
treee99d9fbbc2df9460529449e4c6430d4880633ce2 /weed/command/master.go
parentf247cab5cd47b7f54a3267979508160ebdd933ce (diff)
parent01c48da6ce0ecb685c29a8e734f962bfb0cf8e97 (diff)
downloadseaweedfs-2824940ecf62073e00a4d7e2a069b693082b31cf.tar.xz
seaweedfs-2824940ecf62073e00a4d7e2a069b693082b31cf.zip
Merge branch 'master' of https://github.com/chrislusf/seaweedfs
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)