From cabb3b219dda365ba80f949fc720b8fe3d1e6b31 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sun, 28 Jan 2018 10:52:07 +1000 Subject: [PATCH] Fix some config loading issues --- irc/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irc/config.go b/irc/config.go index 0739eac8..9d80736a 100644 --- a/irc/config.go +++ b/irc/config.go @@ -128,7 +128,7 @@ type STSConfig struct { // Value returns the STS value to advertise in CAP func (sts *STSConfig) Value() string { - val := fmt.Sprintf("duration=%d,", int(sts.Duration.Seconds())) + val := fmt.Sprintf("duration=%d", int(sts.Duration.Seconds())) if sts.Enabled && sts.Port > 0 { val += fmt.Sprintf(",port=%d", sts.Port) } @@ -348,10 +348,10 @@ func (conf *Config) TLSListeners() map[string]*tls.Config { tlsListeners := make(map[string]*tls.Config) for s, tlsListenersConf := range conf.Server.TLSListeners { config, err := tlsListenersConf.Config() - config.ClientAuth = tls.RequestClientCert if err != nil { log.Fatal(err) } + config.ClientAuth = tls.RequestClientCert tlsListeners[s] = config } return tlsListeners