This commit is contained in:
yuhangcangqian 2025-01-13 13:13:22 +09:00 committed by GitHub
commit ba818a505b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

4
tls.go
View file

@ -53,7 +53,7 @@ func getTLSCipherSuites(v string) []uint16 {
supported := tls.CipherSuites()
if v == "" {
suites := make([]uint16, len(supported))
suites := make([]uint16, 0, len(supported))
for _, cs := range supported {
suites = append(suites, cs.ID)
@ -64,7 +64,7 @@ func getTLSCipherSuites(v string) []uint16 {
var found bool
txts := strings.Split(v, ",")
suites := make([]uint16, len(txts))
suites := make([]uint16, 0, len(txts))
for _, want := range txts {
found = false