Add ServerName to TLSConfig

This commit is contained in:
Wim 2017-10-21 00:42:01 +02:00
parent 9b500bc5f7
commit 307ff77b42
1 changed files with 1 additions and 1 deletions

View File

@ -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,
})