From 2107462d5bdc6ea23fee8e8122994c545b823e98 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Thu, 30 Jul 2015 17:36:37 +0100 Subject: [PATCH] Fixing build issues --- web.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web.go b/web.go index a7f8a36..c3c67db 100644 --- a/web.go +++ b/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) }