Skip to content

Commit

Permalink
fixed RT #44845
Browse files Browse the repository at this point in the history
  • Loading branch information
xsawyerx committed Sep 8, 2010
1 parent 4012fca commit 71b0f7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ Revision history for Perl extension Sys::HostIP.

1.4 xx.09.10
* New maintainer: Sawyer X (XSAWYERX)
* Fixed RT #24002 (thanks [email protected], MARKLE)
* Fixed RT #24002 (thanks [email protected] and MARKLE)
* Fixed RT #44845 (thanks Mikhael <[email protected]>)
* Rewrote tests, doubled them
* Using clean EXPORT_OK now
* Moved to Dist::Zilla
Expand Down
3 changes: 2 additions & 1 deletion lib/Sys/HostIP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ sub _get_unix_interface_info {
if ( ($line =~/^\s+/) && ($interface) ) {
$if_info{$interface} .= $line;
}
elsif (($interface) = ($line =~/(^\w+(?:\d)?(?:\:\d+)?)/)) {
# FIXME: refactor this regex
elsif (($interface) = ($line =~/(^\w+(?:\d)?(?:\.\d+)?(?:\:\d+)?)/)) {
$line =~s/\w+\d(\:)?\s+//;
$if_info{$interface} = $line;
}
Expand Down

0 comments on commit 71b0f7c

Please sign in to comment.