From 307ff77b4266949d4f0794b16b48a30110b25239 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 21 Oct 2017 00:42:01 +0200 Subject: Add ServerName to TLSConfig --- bridge/irc/irc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge') diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 9109e284..205e4ce4 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -89,7 +89,7 @@ func (b *Birc) Connect() error { User: b.Config.Nick, Name: b.Config.Nick, SSL: b.Config.UseTLS, - TLSConfig: &tls.Config{InsecureSkipVerify: b.Config.SkipTLSVerify}, + TLSConfig: &tls.Config{InsecureSkipVerify: b.Config.SkipTLSVerify, ServerName: server}, PingDelay: time.Minute, }) -- cgit v1.2.3