spelling corrected UserPreferredCipherSuites
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user