aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-09-16 10:26:08 -0700
committerChris Lu <chris.lu@gmail.com>2020-09-16 10:26:08 -0700
commitfeca07bf96312655c5d41cfce93f916d576bf644 (patch)
tree9fe9d121d9bd7e95a915358bc358225e2dc3552b
parente861a6a3ab2874261c02c3c42d4450243284b559 (diff)
downloadseaweedfs-feca07bf96312655c5d41cfce93f916d576bf644.tar.xz
seaweedfs-feca07bf96312655c5d41cfce93f916d576bf644.zip
Filer: ip bind
fix https://github.com/chrislusf/seaweedfs/issues/1470
-rw-r--r--weed/command/filer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go
index c36c43e93..a6670b063 100644
--- a/weed/command/filer.go
+++ b/weed/command/filer.go
@@ -152,7 +152,7 @@ func (fo *FilerOptions) startFiler() {
// starting grpc server
grpcPort := *fo.port + 10000
- grpcL, err := util.NewListener(":"+strconv.Itoa(grpcPort), 0)
+ grpcL, err := util.NewListener(*fo.bindIp+":"+strconv.Itoa(grpcPort), 0)
if err != nil {
glog.Fatalf("failed to listen on grpc port %d: %v", grpcPort, err)
}