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

Don't throw error if cannot connect to server

This commit is contained in:
Zack Scholl 2019-05-02 11:41:03 -07:00
parent abc5e3f6c0
commit 95c2b0f48a

View file

@ -295,6 +295,7 @@ func (c *Client) Send(options TransferOptions) (err error) {
log.Debugf("banner: %s", banner)
if err != nil {
err = errors.Wrap(err, fmt.Sprintf("could not connect to %s", c.Options.RelayAddress))
log.Debug(err)
return
}
log.Debugf("connection established: %+v", conn)