From e4fc271fd2d8f9dd9793200d8d9f689d0cf4d5db Mon Sep 17 00:00:00 2001 From: Gaukas Wang Date: Thu, 6 Jul 2023 15:14:24 -0600 Subject: [PATCH] fix: allow TLS 1.3 as min TLS version (#194) Potentially a dirty fix, however so far no test has failed. --- u_conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u_conn.go b/u_conn.go index caff710..4a3d7ce 100644 --- a/u_conn.go +++ b/u_conn.go @@ -631,7 +631,7 @@ func (uconn *UConn) SetTLSVers(minTLSVers, maxTLSVers uint16, specExtensions []T } } - if minTLSVers < VersionTLS10 || minTLSVers > VersionTLS12 { + if minTLSVers < VersionTLS10 || minTLSVers > VersionTLS13 { return fmt.Errorf("uTLS does not support 0x%X as min version", minTLSVers) }