lizmat / IRC-Client

Raku module for building IRC (Internet Relay Chat) clients
https://raku.land/zef:lizmat/IRC::Client
Artistic License 2.0
15 stars 8 forks source link

SSL not working #54

Closed Grauwolf closed 6 years ago

Grauwolf commented 6 years ago

The SSL support does not seem to be working yet.

use lib <lib>;
use IRC::Client;
.run with IRC::Client.new:
    :nick<MahBot>
    :host(%*ENV<IRC_CLIENT_HOST> // 'irc.freenode.net')
    :port<6697>,
    :ssl,
    :channels<#zofbot>
    :debug
% perl6 blub.p6
◀▬▬ _ Attempting to connect to server
Type check failed in assignment to $!socket; expected IO::Socket::Async but got IO::Socket::Async::SSL (IO::Socket::Async::SS...)
  in block  at /home/grauwolf/.rakudobrew/moar-master/install/share/perl6/site/sources/91300E2449A727CEFB2F4BC51BC01429C567F65B (IRC::Client) line 223 
  in sub  at /home/grauwolf/.rakudobrew/moar-master/install/share/perl6/site/sources/91300E2449A727CEFB2F4BC51BC01429C567F65B (IRC::Client) line 193 

  in block  at /home/grauwolf/.rakudobrew/moar-master/install/share/perl6/site/sources/91300E2449A727CEFB2F4BC51BC01429C567F65B (IRC::Client) line 223

https://github.com/zoffixznet/perl6-IRC-Client/blob/a65947a81a2047bb05dad59d5fd3ccee09236605/lib/IRC/Client/Server.pm6#L18

zoffixznet commented 6 years ago

Surprised this went undetected for so long 😮 Should be fixed in https://github.com/zoffixznet/perl6-IRC-Client/commit/01df2b390c7ad9a27ea2275780b4100563d30dc6

Thanks!