Skip to content

Commit

Permalink
better workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 27, 2012
1 parent 3578ae6 commit 337c632
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

2.97 2012-05-26
2.97 2012-05-27
- Added workaround to make IO::Socket::SSL work with IO::Socket::IP.
- Improved documentation.
- Improved tests.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Client.pm
Expand Up @@ -18,7 +18,7 @@ use constant TLS_READ => TLS ? IO::Socket::SSL::SSL_WANT_READ() : 0;
use constant TLS_WRITE => TLS ? IO::Socket::SSL::SSL_WANT_WRITE() : 0;

# Fix IO::Socket::SSL to work with IO::Socket::IP
$IO::Socket::SSL::ISA[0] = 'IO::Socket::IP' if IPV6;
$IO::Socket::SSL::ISA[0] = 'IO::Socket::IP' if IPV6 && TLS;

# "It's like my dad always said: eventually, everybody gets shot."
has reactor => sub {
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Server.pm
Expand Up @@ -21,7 +21,7 @@ use constant TLS_READ => TLS ? IO::Socket::SSL::SSL_WANT_READ() : 0;
use constant TLS_WRITE => TLS ? IO::Socket::SSL::SSL_WANT_WRITE() : 0;

# Fix IO::Socket::SSL to work with IO::Socket::IP
$IO::Socket::SSL::ISA[0] = 'IO::Socket::IP' if IPV6;
$IO::Socket::SSL::ISA[0] = 'IO::Socket::IP' if IPV6 && TLS;

# To regenerate the certificate run this command (18.04.2012)
# openssl req -new -x509 -keyout server.key -out server.crt -nodes -days 7300
Expand Down

0 comments on commit 337c632

Please sign in to comment.