Skip to content

Commit

Permalink
In jailed environments we can't assume that 127.0.0.1 will be that. R…
Browse files Browse the repository at this point in the history
…eported by Jase Thew (Bazerka). Only affected one DCC test.
  • Loading branch information
bingos committed Apr 29, 2009
1 parent 62f5a13 commit 03ac76e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Revision history for Perl extension POE::Component::IRC.
- PlugMan.pm: Don't rely on State.pm for authentication. Eliminates race
condition when receiving channel commands before the channel has been
synced (Hinrik)
- In jailed environments we can't assume that 127.0.0.1 will be that.
reported by Jase Thew (Bazerka).

6.05_01 Sat Apr 11 09:18:28 GMT 2009
- Compat.pm: Don't emit an extra event or print a misleading debug message
Expand Down
8 changes: 5 additions & 3 deletions t/04_plugins/17_dcc/02_timeout.t
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ sub _start {
);

if ($wheel) {
my $port = ( unpack_sockaddr_in( $wheel->getsockname ) )[0];

my ($port,$address) = unpack_sockaddr_in( $wheel->getsockname );
$heap->{_addr} = unpack 'N', $address;
$kernel->yield(_config_ircd => $port);
$kernel->delay(_shutdown => 60, 'Timed out');
return;
Expand Down Expand Up @@ -99,10 +101,10 @@ sub irc_join {
}

sub irc_dcc_request {
my ($sender, $cookie) = @_[SENDER, ARG3];
my ($sender, $heap, $cookie) = @_[SENDER, HEAP, ARG3];

pass('Got dcc request');
is($cookie->{addr}, '2130706433', 'Correct Address Test');
is($cookie->{addr}, $heap->{_addr}, 'Correct Address Test');
$sender->get_heap()->yield('quit');
}

Expand Down

0 comments on commit 03ac76e

Please sign in to comment.