0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02: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
}