Fix port-less invocation

This commit is contained in:
2020-01-01 16:31:04 +00:00
parent 90dc6edfad
commit 264c591495

View File

@@ -47,7 +47,7 @@ func ircAdapter() hugot.Adapter {
if config.SSL {
hostname, _, err := net.SplitHostPort(config.Server)
if err != nil {
log.Fatal(err)
hostname = config.Server
}
config.SSLConfig = &tls.Config{
ServerName: hostname,