From 2be5407aa479a537426b4ce706a4095a55ae160f Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Thu, 30 Jul 2015 14:10:40 +0100 Subject: [PATCH] Fixing build issues --- main.go | 2 +- web.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 77d4251..0f87a45 100644 --- a/main.go +++ b/main.go @@ -244,7 +244,7 @@ func main() { os.Exit(1) } - web = Webserver(9563) + web = &Webserver(9563) <-dj.keepAlive } diff --git a/web.go b/web.go index 95f9ba5..be4ce6e 100644 --- a/web.go +++ b/web.go @@ -27,7 +27,7 @@ type Page struct { var external_ip = "" -func Webserver(port int) *WebServer { +func Webserver(port int) WebServer { var webserver = WebServer{port, make(map[*gumble.User]string), make(map[string]*gumble.User)} http.HandleFunc("/", webserver.homepage) http.HandleFunc("/add", webserver.add) @@ -35,7 +35,7 @@ func Webserver(port int) *WebServer { http.HandleFunc("/skip", webserver.skip) http.ListenAndServe(":"+strconv.Itoa(port), nil) rand.Seed(time.Now().UnixNano()) - return &webserver + return webserver } func (web *WebServer) homepage(w http.ResponseWriter, r *http.Request) {