Correctly set hostname for grpc server
This commit is contained in:
parent
3c72409c5c
commit
1d51a8463e
@ -166,6 +166,7 @@ func ActionServe(c *cli.Context) error {
|
||||
}
|
||||
|
||||
grpcFileServer := server.NewGRPCFileServiceServer(s)
|
||||
grpcFileServer.Hostname = cfg.Server.Hostname
|
||||
if c.IsSet("hostname") {
|
||||
grpcFileServer.Hostname = c.String("hostname")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user