Skip to content

Commit

Permalink
fix: allow TLS 1.3 as min TLS version (#194)
Browse files Browse the repository at this point in the history
Potentially a dirty fix, however so far no test has failed.
  • Loading branch information
gaukas authored Jul 6, 2023
1 parent c90765d commit e4fc271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion u_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit e4fc271

Please sign in to comment.