1
0
Fork 0
mirror of https://github.com/adnanh/webhook.git synced 2026-01-23 02:24:30 +00:00
This commit is contained in:
yuhangcangqian 2025-12-11 09:59:04 -05:00 committed by GitHub
commit cd20e760bc
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