Fixing build issues

This commit is contained in:
MichaelOultram 2015-07-30 15:47:05 +01:00
parent f15ff8755a
commit 15ce071ef6

2
web.go
View file

@ -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:]})
}
}