mirror of
https://github.com/schollz/croc.git
synced 2024-11-28 09:35:14 +03:00
use local port
This commit is contained in:
parent
7af57b3390
commit
aae63876d6
@ -251,7 +251,7 @@ func (c *Client) Send(options TransferOptions) (err error) {
|
||||
go func() {
|
||||
discoveries, err := peerdiscovery.Discover(peerdiscovery.Settings{
|
||||
Limit: 1,
|
||||
Payload: []byte("9009"),
|
||||
Payload: []byte(c.Options.RelayPorts[0]),
|
||||
Delay: 10 * time.Millisecond,
|
||||
TimeLimit: 30 * time.Second,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user