Correctly set hostname for grpc server

This commit is contained in:
Torjus Håkestad 2021-12-04 10:35:26 +01:00
parent 3c72409c5c
commit 1d51a8463e

View File

@ -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")
}