mirror of https://github.com/schollz/croc.git
no limit to sender discoveries
This commit is contained in:
parent
aae63876d6
commit
9cf4050913
|
@ -250,9 +250,9 @@ func (c *Client) Send(options TransferOptions) (err error) {
|
||||||
// look for peers first
|
// look for peers first
|
||||||
go func() {
|
go func() {
|
||||||
discoveries, err := peerdiscovery.Discover(peerdiscovery.Settings{
|
discoveries, err := peerdiscovery.Discover(peerdiscovery.Settings{
|
||||||
Limit: 1,
|
Limit: -1,
|
||||||
Payload: []byte(c.Options.RelayPorts[0]),
|
Payload: []byte(c.Options.RelayPorts[0]),
|
||||||
Delay: 10 * time.Millisecond,
|
Delay: 5 * time.Millisecond,
|
||||||
TimeLimit: 30 * time.Second,
|
TimeLimit: 30 * time.Second,
|
||||||
})
|
})
|
||||||
log.Debugf("discoveries: %+v", discoveries)
|
log.Debugf("discoveries: %+v", discoveries)
|
||||||
|
|
Loading…
Reference in New Issue