From c7624535e9693f500f83c4500bf11b75645f768c Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Mon, 28 Oct 2019 13:13:03 -0700 Subject: [PATCH] skip discovery --- src/croc/croc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/croc/croc.go b/src/croc/croc.go index 8d5198e..ac3356a 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -395,8 +395,10 @@ func (c *Client) Receive() (err error) { }) if err == nil && len(discoveries) > 0 { for i := 0; i < len(discoveries); i++ { + log.Debugf("discovery %d has payload: %+v", i, discoveries[i]) if !bytes.HasPrefix(discoveries[i].Payload, []byte("croc")) { - log.Debugf("discovery %d has wrong payload: %+v", i, discoveries[i]) + log.Debug("skipping discovery") + continue } log.Debug("switching to local") c.Options.RelayAddress = fmt.Sprintf("%s:%s",