0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

use local port

This commit is contained in:
Zack Scholl 2019-05-02 11:45:42 -07:00
parent 7af57b3390
commit aae63876d6

View file

@ -251,7 +251,7 @@ func (c *Client) Send(options TransferOptions) (err error) {
go func() { go func() {
discoveries, err := peerdiscovery.Discover(peerdiscovery.Settings{ discoveries, err := peerdiscovery.Discover(peerdiscovery.Settings{
Limit: 1, Limit: 1,
Payload: []byte("9009"), Payload: []byte(c.Options.RelayPorts[0]),
Delay: 10 * time.Millisecond, Delay: 10 * time.Millisecond,
TimeLimit: 30 * time.Second, TimeLimit: 30 * time.Second,
}) })