missed a reference to localhost
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user