I was the one that introduced all switch statements, but at this point I see that it makes sense in various parts to check whether protocol version is greater or equal to TLS. If at some point we introduce more versions, in many parts of the code we will do ```if (version >= CF_PROTOCOL_TLS)``` since future versions will still be encapsulated with TLS. Here the check for "allowlegacyconnects" should be done for everything less than CF_PROTOCOL_LATEST.

That was the rationale behind this change, unfortunately I didn't have the time to change many other switch statements that it makes sense to do so, I'll do it little by little.

I'll append a small commit that makes my intent clearer.