Fix passing port on command line

This commit is contained in:
Marc Di Luzio 2020-06-01 18:10:25 +01:00
parent 2e7b2d2928
commit 07c5b9cf5a
3 changed files with 8 additions and 3 deletions

View file

@ -13,6 +13,8 @@ import (
var port = flag.Int("port", 8080, "The port to host on")
func main() {
flag.Parse()
s := server.NewServer(
server.OptionPort(*port),
server.OptionPersistentData())