SSL -> TLS

This commit is contained in:
Thomas Jager 2012-11-07 21:55:33 +01:00
parent c8f78ebf45
commit 9e880ef476
2 changed files with 4 additions and 4 deletions

4
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)
}

@ -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