Use secure IRC connections
This commit is contained in:
@@ -81,8 +81,13 @@ void TwitchServer::initializeConnection(IrcConnection *connection, bool isRead,
|
|||||||
connection->sendCommand(
|
connection->sendCommand(
|
||||||
Communi::IrcCommand::createCapability("REQ", "twitch.tv/tags"));
|
Communi::IrcCommand::createCapability("REQ", "twitch.tv/tags"));
|
||||||
|
|
||||||
|
connection->setSecure(true);
|
||||||
|
|
||||||
|
// https://dev.twitch.tv/docs/irc/guide/#connecting-to-twitch-irc
|
||||||
|
// SSL disabled: irc://irc.chat.twitch.tv:6667
|
||||||
|
// SSL enabled: irc://irc.chat.twitch.tv:6697
|
||||||
connection->setHost("irc.chat.twitch.tv");
|
connection->setHost("irc.chat.twitch.tv");
|
||||||
connection->setPort(6667);
|
connection->setPort(6697);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<Channel> TwitchServer::createChannel(const QString &channelName)
|
std::shared_ptr<Channel> TwitchServer::createChannel(const QString &channelName)
|
||||||
|
|||||||
Reference in New Issue
Block a user