Implement --host flag to override {{.Host}} #29

Manually merged
electricdusk merged 1 commits from dsprenkels/host into master 2019-12-16 05:22:42 +01:00
Showing only changes of commit f32e47b4c8 - Show all commits

View File

@ -87,6 +87,8 @@ func StartMainServer(addr string, db *db.Database, fs *db.FileStore, rawhost *st
if err != nil { if err != nil {
log.Fatalln(errors.Wrap(err, "could not parse host flag")) log.Fatalln(errors.Wrap(err, "could not parse host flag"))
} }
} else {
log.Println("warning: the --host flag will be required in the future")
} }
rl := rushlink{ rl := rushlink{
db: db, db: db,