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:
parent
662bce58a3
commit
972dce1ec5
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue