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