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:
parent
b14f1c35a3
commit
b202682596
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue