forgot to call flag.Parse

This commit is contained in:
David 2022-04-17 11:36:15 -04:00
parent 48bfb61cc0
commit c5e90fa640
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ func main() {
PrinterHostname: "http://" + hostname,
Port: port,
}
flag.Parse()
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "index.html" || r.URL.Path == "/" {