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:
parent
662bce58a3
commit
972dce1ec5
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user