TLS allows for encrypted communication with the IRC server.
Changes
Add EnableTLS bool to config structs
Add --tls CLI flag defaulted to true (Can be set to false with --tls=false)
Move Hard-coded port to server address (Note: RFC 7194 does specify a default port for IRC over TLS as an alternative if hard-coding is preferred)
Change default port used for IRC communication
Open socket with crypto/tls when TLS is enabled in config struct (Note: Presently TLS certificate verification is disabled due to widespread use of self-signed certificates including at irc.irchighway.net)
Overview
TLS allows for encrypted communication with the IRC server.
Changes
EnableTLS bool
to config structs--tls
CLI flag defaulted to true (Can be set to false with--tls=false
)crypto/tls
when TLS is enabled in config struct (Note: Presently TLS certificate verification is disabled due to widespread use of self-signed certificates including atirc.irchighway.net
)