From 9e880ef476e4c0242819776f9e803ea70ffc555b Mon Sep 17 00:00:00 2001 From: Thomas Jager Date: Wed, 7 Nov 2012 21:55:33 +0100 Subject: [PATCH] SSL -> TLS --- irc.go | 4 ++-- irc_struct.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/irc.go b/irc.go index 3a06d10..3f3b848 100644 --- a/irc.go +++ b/irc.go @@ -198,8 +198,8 @@ func (irc *Connection) Connect(server string) error { irc.server = server var err error irc.log.Printf("Connecting to %s\n", irc.server) - if irc.UseSSL { - irc.socket, err = tls.Dial("tcp", irc.server, irc.SSLConfig) + if irc.UseTLS { + irc.socket, err = tls.Dial("tcp", irc.server, irc.TLSConfig) } else { irc.socket, err = net.Dial("tcp", irc.server) } diff --git a/irc_struct.go b/irc_struct.go index 1f174dd..cff0ad6 100644 --- a/irc_struct.go +++ b/irc_struct.go @@ -15,8 +15,8 @@ type Connection struct { Error chan error Log chan string Password string - UseSSL bool - SSLConfig *tls.Config + UseTLS bool + TLSConfig *tls.Config socket net.Conn pread, pwrite chan string