Fixing build issues

This commit is contained in:
MichaelOultram 2015-07-30 14:03:22 +01:00
parent a4dd48007d
commit 2550e43710
2 changed files with 2 additions and 2 deletions

View file

@ -172,7 +172,7 @@ var dj = mumbledj{
cache: NewSongCache(),
}
var web *Webserver
var web *WebServer
// main primarily performs startup tasks. Grabs and parses commandline
// args, sets up the gumble client and its listeners, and then connects to the server.

2
web.go
View file

@ -44,7 +44,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() + ":" + web.port + "/", r.URL.Path[1:]})
t.Execute(w, Page{"http://" + getIP() + ":" + strconv.Itoa(web.port) + "/", r.URL.Path[1:]})
}
}