Browse Source

bump to 0.0.3 to fix an issue where Net::CIDR does sometimes not like some IPs

tags/0.0.3
Zane C. B-H 8 months ago
parent
commit
b3bbb47024
2 changed files with 21 additions and 17 deletions
  1. 16
    12
      Parse-Netstat-Search/Changes
  2. 5
    5
      Parse-Netstat-Search/lib/Parse/Netstat/Search.pm

+ 16
- 12
Parse-Netstat-Search/Changes View File

@@ -1,15 +1,19 @@
Revision history for Parse-Netstat-Search

0.0.2 2019-02-24/08:30
- Previous issue turned out to be specifically. Added
addtional handling for UDP as it is stateless. This
removes '?' from previously. State for for UDP is ''.

0.0.1 2019-02-24/06:30
- Handle where FreeBSD does not state LISTEN.
- Add a missing error flag.
- If state is not defined use '?'.

0.0.0 2019-02-20/06:00
-Initial release.
0.0.3 2019-02-25/06:30
- Use eval to talk to Net::CIDR as it seems to not always like IPv6.
This allows it to continue instead of killing the entire op.

0.0.2 2019-02-24/08:30
- Previous issue turned out to be specifically. Added
addtional handling for UDP as it is stateless. This
removes '?' from previously. State for for UDP is ''.

0.0.1 2019-02-24/06:30
- Handle where FreeBSD does not state LISTEN.
- Add a missing error flag.
- If state is not defined use '?'.

0.0.0 2019-02-20/06:00
-Initial release.


+ 5
- 5
Parse-Netstat-Search/lib/Parse/Netstat/Search.pm View File

@@ -12,11 +12,11 @@ Parse::Netstat::Search - Searches the connection list in the results returned by

=head1 VERSION

Version 0.0.2
Version 0.0.3

=cut

our $VERSION = '0.0.2';
our $VERSION = '0.0.3';


=head1 SYNOPSIS
@@ -271,11 +271,11 @@ sub search{
(
(
( $foreign_host ne '*' ) &&
( Net::CIDR::cidrlookup( $foreign_host, @{ $self->{cidrs} } ) )
( eval{ Net::CIDR::cidrlookup( $foreign_host, @{ $self->{cidrs} } ) })
) ||
(
( $local_host ne '*' ) &&
( Net::CIDR::cidrlookup( $local_host, @{ $self->{cidrs} } ) )
( eval{ Net::CIDR::cidrlookup( $local_host, @{ $self->{cidrs} } ) } )
)
)
) {
@@ -634,7 +634,7 @@ L<https://metacpan.org/release/Parse-Netstat-Search>

=item * Code Repo

L<http://gitea.eesdp.org/vvelox/Parse-Netstat-Search>
L<https://gitea.eesdp.org/vvelox/Parse-Netstat-Search>

=back


Loading…
Cancel
Save