1
0
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:
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() {
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,
})