Set version in generate-config

This commit is contained in:
Neil Alexander 2022-01-05 15:58:46 +00:00
parent abbbbbb2b4
commit 81ac9bb440
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

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