bump version, document changes, add a text to test for any future regressions
This commit is contained in:
parent
7c479576bf
commit
6112ee058d
|
@ -1,5 +1,11 @@
|
|||
Revision history for Parse-Netstat-Search
|
||||
|
||||
0.1.1 2019-02-26/04:00
|
||||
- Apparently Net::CIDR does not like searching IPv4 and IPv6 at the
|
||||
same time. Each requested CIDR is now checked on its own. While
|
||||
it says the functions will handle both in the docs, apparently
|
||||
this does not mean at the same time.
|
||||
|
||||
0.1.0 2019-02-26/00:15
|
||||
- Add in handling of % in IPv6 addresses.
|
||||
- Add in handling of slightly malformed IPv6 address that netstat
|
||||
|
|
|
@ -12,11 +12,11 @@ Parse::Netstat::Search - Searches the connection list in the results returned by
|
|||
|
||||
=head1 VERSION
|
||||
|
||||
Version 0.1.0
|
||||
Version 0.1.1
|
||||
|
||||
=cut
|
||||
|
||||
our $VERSION = '0.1.0';
|
||||
our $VERSION = '0.1.1';
|
||||
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
|
|
@ -184,4 +184,9 @@ $search->set_cidrs( ['::/0'] );
|
|||
ok( $#found eq '0', 'IPv6 CIDR search 1') or diag('"'.$#found.'" number of returned connections for ::/0 instead of "0"');
|
||||
ok( $found[0]->{local_pp} eq 'lo0', 'IPv6 % removal test') or diag('"local_pp" not defined for removed % section of IPv6 address. "lo0" expected');
|
||||
|
||||
done_testing(22);
|
||||
# test for future regrestions in mixed IPv4/6 CIDR lists
|
||||
$search->set_cidrs( ['::/0','192.168.0.0/16'] );
|
||||
@found=$search->search($res);
|
||||
ok( $#found eq '1', 'Mixed IPv4/6 CIDR search 1') or diag('"'.$#found.'" number of returned connections for ::/0,192.168.0.0/16 instead of "1"');
|
||||
|
||||
done_testing(23);
|
||||
|
|
Loading…
Reference in New Issue