File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import (
18
18
"crypto/x509"
19
19
"errors"
20
20
"fmt"
21
- "internal/godebug"
22
21
"io"
23
22
"net"
24
23
"strings"
@@ -974,9 +973,6 @@ var supportedVersions = []uint16{
974
973
VersionTLS10 ,
975
974
}
976
975
977
- // debugEnableTLS10 enables TLS 1.0. See issue 45428.
978
- var debugEnableTLS10 = godebug .Get ("tls10default" ) == "1"
979
-
980
976
// roleClient and roleServer are meant to call supportedVersions and parents
981
977
// with more readability at the callsite.
982
978
const roleClient = true
@@ -985,7 +981,7 @@ const roleServer = false
985
981
func (c * Config ) supportedVersions (isClient bool ) []uint16 {
986
982
versions := make ([]uint16 , 0 , len (supportedVersions ))
987
983
for _ , v := range supportedVersions {
988
- if (c == nil || c .MinVersion == 0 ) && ! debugEnableTLS10 &&
984
+ if (c == nil || c .MinVersion == 0 ) &&
989
985
isClient && v < VersionTLS12 {
990
986
continue
991
987
}
You can’t perform that action at this time.
0 commit comments