Fixing build issues
This commit is contained in:
parent
e1ccad1358
commit
2107462d5b
3
web.go
3
web.go
|
@ -25,6 +25,7 @@ type WebServer struct {
|
|||
type Page struct {
|
||||
siteUrl string
|
||||
token string
|
||||
user string
|
||||
}
|
||||
|
||||
var external_ip = ""
|
||||
|
@ -58,7 +59,7 @@ func (web *WebServer) homepage(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
err = t.Execute(w, &Page{"http://" + getIP() + ":" + strconv.Itoa(web.port) + "/", r.URL.Path[1:]})
|
||||
err = t.Execute(w, &Page{"http://" + getIP() + ":" + strconv.Itoa(web.port) + "/", r.URL.Path[1:], uname})
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
}
|
||||
|
|
Reference in a new issue