Fix port-less invocation
This commit is contained in:
@@ -47,7 +47,7 @@ func ircAdapter() hugot.Adapter {
|
|||||||
if config.SSL {
|
if config.SSL {
|
||||||
hostname, _, err := net.SplitHostPort(config.Server)
|
hostname, _, err := net.SplitHostPort(config.Server)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
hostname = config.Server
|
||||||
}
|
}
|
||||||
config.SSLConfig = &tls.Config{
|
config.SSLConfig = &tls.Config{
|
||||||
ServerName: hostname,
|
ServerName: hostname,
|
||||||
|
Reference in New Issue
Block a user