fix: Correct flag parsing

This commit is contained in:
ptrcnull 2022-03-01 21:37:55 +01:00
parent 3213366262
commit e4813daf4d
Signed by: ptrcnull
GPG key ID: 411F7B30801DD9CA

View file

@ -32,6 +32,7 @@ var domainFlag = flag.String("domain", "http://localhost:8085", "base domain")
var bindFlag = flag.String("bind", ":8085", "host and port to bind") var bindFlag = flag.String("bind", ":8085", "host and port to bind")
func main() { func main() {
flag.Parse()
h := &Handler{ h := &Handler{
DataDir: *dataDirFlag, DataDir: *dataDirFlag,
Domain: *domainFlag, Domain: *domainFlag,