From b2026825962e291cdee1607f17db1c82861ae2c0 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Mon, 24 Sep 2018 07:26:52 -0700 Subject: [PATCH] local relay runs with tcp port too --- src/croc/sending.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/croc/sending.go b/src/croc/sending.go index 78b423f..b55092e 100644 --- a/src/croc/sending.go +++ b/src/croc/sending.go @@ -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