diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-09-16 10:26:08 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-09-16 10:26:08 -0700 |
| commit | feca07bf96312655c5d41cfce93f916d576bf644 (patch) | |
| tree | 9fe9d121d9bd7e95a915358bc358225e2dc3552b /weed/command/filer.go | |
| parent | e861a6a3ab2874261c02c3c42d4450243284b559 (diff) | |
| download | seaweedfs-feca07bf96312655c5d41cfce93f916d576bf644.tar.xz seaweedfs-feca07bf96312655c5d41cfce93f916d576bf644.zip | |
Filer: ip bind
fix https://github.com/chrislusf/seaweedfs/issues/1470
Diffstat (limited to 'weed/command/filer.go')
| -rw-r--r-- | weed/command/filer.go | 2 |
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) } |
