From 1924d613f0955004abb6c6019f7b86081a3e47a5 Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Sat, 28 Sep 2013 14:33:51 -0700 Subject: [PATCH] missed a reference to localhost --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d110c71..1e89453 100644 --- a/main.go +++ b/main.go @@ -85,7 +85,8 @@ func connect() (*websocket.Conn, error) { } func createGame() (string, error) { - resp, err := http.Get("http://localhost:8666/game/start/") + url := fmt.Sprintf("http://%s:%d/game/start/", *server, *port) + resp, err := http.Get(url) if err != nil { return "", err }