From 690deb1c05cca5834b67d67c9a342b343422d7f4 Mon Sep 17 00:00:00 2001 From: Rahul Somasundaram Date: Thu, 22 Sep 2022 08:44:43 +0530 Subject: [PATCH] spelling corrected UserPreferredCipherSuites --- internal/aghtls/aghtls.go | 2 +- internal/home/web.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/aghtls/aghtls.go b/internal/aghtls/aghtls.go index 213eb8fed3e..209bef1dbb5 100644 --- a/internal/aghtls/aghtls.go +++ b/internal/aghtls/aghtls.go @@ -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) diff --git a/internal/home/web.go b/internal/home/web.go index b7157a1a8aa..510d04f4b69 100644 --- a/internal/home/web.go +++ b/internal/home/web.go @@ -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)