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

disable ipv6 for peer-to-peer discovery since it causes issues

This commit is contained in:
Zack Scholl 2020-10-19 11:02:48 -07:00
parent a5bcf382e0
commit b66cfb4cc1

View file

@ -367,7 +367,9 @@ func (c *Client) Send(options TransferOptions) (err error) {
// add two things to the error channel // add two things to the error channel
errchan = make(chan error, 2) errchan = make(chan error, 2)
c.setupLocalRelay() c.setupLocalRelay()
go c.broadcastOnLocalNetwork(true) // broadcast on ipv6
//go c.broadcastOnLocalNetwork(true)
// broadcast on ipv4
go c.broadcastOnLocalNetwork(false) go c.broadcastOnLocalNetwork(false)
go c.transferOverLocalRelay(options, errchan) go c.transferOverLocalRelay(options, errchan)
} }