diff --git a/web.go b/web.go index 7fd4bc1..2e630fd 100644 --- a/web.go +++ b/web.go @@ -50,7 +50,7 @@ func (web *WebServer) homepage(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Invalid Token") } else { t, _ := template.ParseFiles("index.html") - t.Execute(w, Page{"http://" + getIP() + ":" + strconv.Itoa(web.port) + "/", r.URL.Path[1:]}) + t.Execute(w, &Page{"http://" + getIP() + ":" + strconv.Itoa(web.port) + "/", r.URL.Path[1:]}) } }