mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-13 12:36:45 +02:00
use ip.bind to listen for grpc calls
help to avoid https://github.com/chrislusf/seaweedfs/issues/952
This commit is contained in:
parent
8656102127
commit
4c392ca762
|
@ -217,7 +217,7 @@ func runServer(cmd *Command, args []string) bool {
|
||||||
|
|
||||||
// starting grpc server
|
// starting grpc server
|
||||||
grpcPort := *masterPort + 10000
|
grpcPort := *masterPort + 10000
|
||||||
grpcL, err := util.NewListener(*serverIp+":"+strconv.Itoa(grpcPort), 0)
|
grpcL, err := util.NewListener(*serverBindIp+":"+strconv.Itoa(grpcPort), 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Fatalf("master failed to listen on grpc port %d: %v", grpcPort, err)
|
glog.Fatalf("master failed to listen on grpc port %d: %v", grpcPort, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue