mirror of https://github.com/schollz/croc.git
allow local
This commit is contained in:
parent
b55af54b10
commit
4a27806ffe
|
@ -323,7 +323,8 @@ func (c *Client) Receive() (err error) {
|
||||||
TimeLimit: 100 * time.Millisecond,
|
TimeLimit: 100 * time.Millisecond,
|
||||||
})
|
})
|
||||||
if err == nil && len(discoveries) > 0 {
|
if err == nil && len(discoveries) > 0 {
|
||||||
//c.Options.RelayAddress = fmt.Sprintf("%s:%s", discoveries[0].Address, discoveries[0].Payload)
|
log.Debug("switching to local")
|
||||||
|
c.Options.RelayAddress = fmt.Sprintf("%s:%s", discoveries[0].Address, discoveries[0].Payload)
|
||||||
}
|
}
|
||||||
log.Debugf("discoveries: %+v", discoveries)
|
log.Debugf("discoveries: %+v", discoveries)
|
||||||
log.Debug("establishing connection")
|
log.Debug("establishing connection")
|
||||||
|
|
Loading…
Reference in New Issue