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

local relay runs with tcp port too

This commit is contained in:
Zack Scholl 2018-09-24 07:26:52 -07:00
parent b14f1c35a3
commit b202682596

View file

@ -40,7 +40,7 @@ func (c *Croc) Send(fname, codephrase string) (err error) {
if !c.NoLocal {
go func() {
// start own relay and connect to it
go relay.Run(c.RelayWebsocketPort, "")
go relay.Run(c.RelayWebsocketPort, c.RelayTCPPort)
time.Sleep(250 * time.Millisecond) // race condition here, but this should work most of the time :(
// broadcast for peer discovery