From 1d51a8463e000a4396a9fd86e64be19034e64a4d Mon Sep 17 00:00:00 2001 From: = Date: Sat, 4 Dec 2021 10:35:26 +0100 Subject: [PATCH] Correctly set hostname for grpc server --- cmd/ezshare.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/ezshare.go b/cmd/ezshare.go index c715b63..b1d2a19 100644 --- a/cmd/ezshare.go +++ b/cmd/ezshare.go @@ -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") }