diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tls/tls_version.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tls/tls_version.cpp b/src/tls/tls_version.cpp index 32a408830..ac4dadc43 100644 --- a/src/tls/tls_version.cpp +++ b/src/tls/tls_version.cpp @@ -43,6 +43,9 @@ bool Protocol_Version::operator>(const Protocol_Version& other) const "Version comparing " + to_string() + " with " + other.to_string()); + if(this->is_datagram_protocol()) + return m_version < other.m_version; // goes backwards + return m_version > other.m_version; } |