3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 18:52:41 +01:00

config: don't casefold tls names

I don't think casefolding things like `:6697` ever made sense.
Since these are configured by the ircd operator, it makes sense to
assume they'll already be in a canonical form regardless.
This commit is contained in:
Euan Kemp 2017-07-25 23:27:11 -07:00
parent 449ef4cea1
commit 3b47f3d470
2 changed files with 2 additions and 14 deletions

View File

@ -369,12 +369,7 @@ func (conf *Config) TLSListeners() map[string]*tls.Config {
if err != nil {
log.Fatal(err)
}
name, err := CasefoldName(s)
if err == nil {
tlsListeners[name] = config
} else {
log.Println("Could not casefold TLS listener:", err.Error())
}
tlsListeners[s] = config
}
return tlsListeners
}

View File

@ -11,8 +11,6 @@ import (
"io/ioutil"
"log"
"github.com/oragono/oragono/irc"
"gopkg.in/yaml.v2"
)
@ -48,12 +46,7 @@ func (conf *Config) TLSListeners() map[string]*tls.Config {
if err != nil {
log.Fatal(err)
}
name, err := irc.CasefoldName(s)
if err == nil {
tlsListeners[name] = config
} else {
log.Println("Could not casefold TLS listener:", err.Error())
}
tlsListeners[name] = config
}
return tlsListeners
}