From 4c392ca7621832d0d8ef11191ddba411d634f865 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 6 May 2019 08:10:18 -0700 Subject: [PATCH] use ip.bind to listen for grpc calls help to avoid https://github.com/chrislusf/seaweedfs/issues/952 --- weed/command/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/command/server.go b/weed/command/server.go index ce402f1cd..5354fab27 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -217,7 +217,7 @@ func runServer(cmd *Command, args []string) bool { // starting grpc server grpcPort := *masterPort + 10000 - grpcL, err := util.NewListener(*serverIp+":"+strconv.Itoa(grpcPort), 0) + grpcL, err := util.NewListener(*serverBindIp+":"+strconv.Itoa(grpcPort), 0) if err != nil { glog.Fatalf("master failed to listen on grpc port %d: %v", grpcPort, err) }