Fixing build issues
This commit is contained in:
parent
f15ff8755a
commit
15ce071ef6
2
web.go
2
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:]})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue