- if address_not_in_pool(self.unique_all_time, match_dict['address'], self.storage['unique_tot']):
- self.storage['unique_tot'] += 1
- if address_not_in_pool(unique_current, match_dict['address'], to_netdata['unique_cur']):
- to_netdata['unique_cur'] += 1
+ if address_not_in_pool(self.unique_all_time, match_dict['address'],
+ self.storage['unique_tot_ipv4'] + self.storage['unique_tot_ipv6']):
+ if '.' in match_dict['address']:
+ self.storage['unique_tot_ipv4'] += 1
+ else:
+ self.storage['unique_tot_ipv6'] += 1
+ if address_not_in_pool(unique_current, match_dict['address'],
+ to_netdata['unique_cur_ipv4'] + to_netdata['unique_cur_ipv6']):
+ if '.' in match_dict['address']:
+ to_netdata['unique_cur_ipv4'] += 1
+ else:
+ to_netdata['unique_cur_ipv6'] += 1
+ else:
+ to_netdata['unmatched'] += 1