Skip to content

Commit

Permalink
Number can be negative webmin#1321
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Nov 9, 2020
1 parent 2a94a7d commit 65f4c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iscsi-client/iscsi-client-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ sub list_iscsi_targets
}
my @rv;
foreach my $l (@lines) {
if ($l =~ /^(\S+):(\d+),(\d+)\s+(\S+):(\S+)/) {
if ($l =~ /^(\S+):(\d+),([0-9\-]+)\s+(\S+):(\S+)/) {
push(@rv, { 'ip' => $1,
'port' => $2,
'name' => $4,
Expand Down

0 comments on commit 65f4c41

Please sign in to comment.