spelling corrected UserPreferredCipherSuites

This commit is contained in:
Rahul Somasundaram 2022-09-22 08:44:43 +05:30
parent 59d18c6598
commit 690deb1c05
No known key found for this signature in database
GPG Key ID: AA8F0B27E83147BD
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)