diff --git a/report-parser.pl b/report-parser.pl index a6049a3..4b140b1 100755 --- a/report-parser.pl +++ b/report-parser.pl @@ -1646,7 +1646,7 @@ sub storeJSONInDatabase { $iptype = "ip"; } elsif($nip = inet_pton(AF_INET6, $ip)) { - $ipval = $dbx{to_hex_string}{$nip}; + $ipval = $dbx{to_hex_string}($nip); $iptype = "ip6"; } else { @@ -1830,4 +1830,4 @@ sub db_column_info { $columns{$column} = $db_info->{$column}{$dbx{column_info_type_col}}; } return %columns; -} \ No newline at end of file +}