forgot to call flag.Parse
This commit is contained in:
parent
48bfb61cc0
commit
c5e90fa640
1
main.go
1
main.go
@ -24,6 +24,7 @@ func main() {
|
|||||||
PrinterHostname: "http://" + hostname,
|
PrinterHostname: "http://" + hostname,
|
||||||
Port: port,
|
Port: port,
|
||||||
}
|
}
|
||||||
|
flag.Parse()
|
||||||
|
|
||||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
if r.URL.Path == "index.html" || r.URL.Path == "/" {
|
if r.URL.Path == "index.html" || r.URL.Path == "/" {
|
||||||
|
Loading…
Reference in New Issue
Block a user