This commit is contained in:
yuhangcangqian 2025-08-18 21:20:17 +08:00 committed by GitHub
commit 9fd496371d
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