From 81ac9bb44092ff410e903a96e56c18aa761586c4 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 5 Jan 2022 15:58:46 +0000 Subject: [PATCH] Set version in generate-config --- cmd/generate-config/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/generate-config/main.go b/cmd/generate-config/main.go index 09198289..2ea12e34 100644 --- a/cmd/generate-config/main.go +++ b/cmd/generate-config/main.go @@ -16,7 +16,9 @@ func main() { dbURI := flag.String("db", "", "The DB URI to use for all components if not SQLite files") flag.Parse() - cfg := &config.Dendrite{} + cfg := &config.Dendrite{ + Version: config.Version, + } cfg.Defaults(true) if *serverName != "" { cfg.Global.ServerName = gomatrixserverlib.ServerName(*serverName)