Skip to content

Commit

Permalink
spelling corrected UserPreferredCipherSuites
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrahul96 committed Sep 22, 2022
1 parent 59d18c6 commit 690deb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/aghtls/aghtls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion internal/home/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 690deb1

Please sign in to comment.