client.go | 6 ++++++ diff --git a/client.go b/client.go index b9b9e70ea48a41b4d41a47fad48f42f2b7eab43b..2d6bbab559f4ad0479ecf35e7b21251e4fb192f2 100644 --- a/client.go +++ b/client.go @@ -819,6 +819,12 @@ } else if c != nil { return } nc.Close() + // Try again without encryption, using whichever protocol type worked last + // time. + if me.config.DisableEncryption { + // We already tried without encryption. + return + } if utp { nc, err = me.dialUTP(addr, t) } else {