[#250] Linux SSHColletor cannot handle uppercase MACs
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
* [#255] undefined host error in netdisco-do psql
|
* [#255] undefined host error in netdisco-do psql
|
||||||
|
* [#250] Linux SSHColletor cannot handle uppercase MACs
|
||||||
|
|
||||||
2.033004 - 2015-11-16
|
2.033004 - 2015-11-16
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ sub arpnip {
|
|||||||
my @lines = split(m/\n/, $before);
|
my @lines = split(m/\n/, $before);
|
||||||
|
|
||||||
# 192.168.1.1 ether 00:b6:aa:f5:bb:6e C eth1
|
# 192.168.1.1 ether 00:b6:aa:f5:bb:6e C eth1
|
||||||
my $linereg = qr/([0-9\.]+)\s+ether\s+([a-f0-9:]+)/;
|
my $linereg = qr/([0-9\.]+)\s+ether\s+([a-fA-F0-9:]+)/;
|
||||||
|
|
||||||
foreach my $line (@lines) {
|
foreach my $line (@lines) {
|
||||||
if ($line =~ $linereg) {
|
if ($line =~ $linereg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user