don't hardcode address

This commit is contained in:
Zack Scholl 2019-04-29 19:20:03 -07:00
parent 662bce58a3
commit 972dce1ec5
1 changed files with 2 additions and 1 deletions

View File

@ -222,8 +222,9 @@ func pipe(conn1 net.Conn, conn2 net.Conn) {
}
}
}
func ConnectToTCPServer(address, room string) (c *comm.Comm, err error) {
c, err = comm.NewConnection("localhost:8081")
c, err = comm.NewConnection(address)
if err != nil {
return
}