spelling corrected UserPreferredCipherSuites
This commit is contained in:
parent
59d18c6598
commit
690deb1c05
|
@ -34,7 +34,7 @@ func SaferCipherSuites() (safe []uint16) {
|
|||
return safe
|
||||
}
|
||||
|
||||
func UserPreferedCipherSuites(ciphers []string) (userCiphers []uint16) {
|
||||
func UserPreferredCipherSuites(ciphers []string) (userCiphers []uint16) {
|
||||
for _, s := range tls.CipherSuites() {
|
||||
if slices.Contains(ciphers, s.Name) {
|
||||
userCiphers = append(userCiphers, s.ID)
|
||||
|
|
|
@ -277,7 +277,7 @@ func (web *Web) tlsServerLoop() {
|
|||
if len(web.conf.tlsCiphers) == 0 {
|
||||
cipher = aghtls.SaferCipherSuites()
|
||||
} else {
|
||||
cipher = aghtls.UserPreferedCipherSuites(web.conf.tlsCiphers)
|
||||
cipher = aghtls.UserPreferredCipherSuites(web.conf.tlsCiphers)
|
||||
}
|
||||
// prepare HTTPS server
|
||||
address := netutil.JoinHostPort(web.conf.BindHost.String(), web.conf.PortHTTPS)
|
||||
|
|
Loading…
Reference in New Issue