SSL -> TLS
This commit is contained in:
parent
c8f78ebf45
commit
9e880ef476
4
irc.go
4
irc.go
@ -198,8 +198,8 @@ func (irc *Connection) Connect(server string) error {
|
|||||||
irc.server = server
|
irc.server = server
|
||||||
var err error
|
var err error
|
||||||
irc.log.Printf("Connecting to %s\n", irc.server)
|
irc.log.Printf("Connecting to %s\n", irc.server)
|
||||||
if irc.UseSSL {
|
if irc.UseTLS {
|
||||||
irc.socket, err = tls.Dial("tcp", irc.server, irc.SSLConfig)
|
irc.socket, err = tls.Dial("tcp", irc.server, irc.TLSConfig)
|
||||||
} else {
|
} else {
|
||||||
irc.socket, err = net.Dial("tcp", irc.server)
|
irc.socket, err = net.Dial("tcp", irc.server)
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,8 @@ type Connection struct {
|
|||||||
Error chan error
|
Error chan error
|
||||||
Log chan string
|
Log chan string
|
||||||
Password string
|
Password string
|
||||||
UseSSL bool
|
UseTLS bool
|
||||||
SSLConfig *tls.Config
|
TLSConfig *tls.Config
|
||||||
|
|
||||||
socket net.Conn
|
socket net.Conn
|
||||||
pread, pwrite chan string
|
pread, pwrite chan string
|
||||||
|
Loading…
Reference in New Issue
Block a user