missed a reference to localhost
This commit is contained in:
parent
bc92c2e01f
commit
1924d613f0
3
main.go
3
main.go
@ -85,7 +85,8 @@ func connect() (*websocket.Conn, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func createGame() (string, 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 {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user