1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00

don't hardcode address

This commit is contained in:
Zack Scholl 2019-04-29 19:20:03 -07:00
parent 662bce58a3
commit 972dce1ec5

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
}