open up listener on gokrazy

This commit is contained in:
Michael Stapelberg
2020-06-25 14:57:48 +02:00
parent 15b15133e0
commit f4baa26f1c
2 changed files with 13 additions and 1 deletions

View File

@@ -66,8 +66,11 @@ func qrchFromRequest(r *http.Request) *qrbill.QRCH {
}
}
// Overridden in api_gokrazy.go
var defaultListenAddress = "localhost:9933"
func logic() error {
var listen = flag.String("listen", "localhost:9933", "[host]:port to listen on")
var listen = flag.String("listen", defaultListenAddress, "[host]:port to listen on")
flag.Parse()
mux := http.NewServeMux()