Fixing build issues
This commit is contained in:
parent
a4dd48007d
commit
2550e43710
2
main.go
2
main.go
|
@ -172,7 +172,7 @@ var dj = mumbledj{
|
||||||
cache: NewSongCache(),
|
cache: NewSongCache(),
|
||||||
}
|
}
|
||||||
|
|
||||||
var web *Webserver
|
var web *WebServer
|
||||||
|
|
||||||
// main primarily performs startup tasks. Grabs and parses commandline
|
// main primarily performs startup tasks. Grabs and parses commandline
|
||||||
// args, sets up the gumble client and its listeners, and then connects to the server.
|
// args, sets up the gumble client and its listeners, and then connects to the server.
|
||||||
|
|
2
web.go
2
web.go
|
@ -44,7 +44,7 @@ func (web WebServer) homepage(w http.ResponseWriter, r *http.Request) {
|
||||||
fmt.Fprintf(w, "Invalid Token")
|
fmt.Fprintf(w, "Invalid Token")
|
||||||
} else {
|
} else {
|
||||||
t, _ := template.ParseFiles("index.html")
|
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:]})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue