[OpenSIPS-Devel] [OpenSIPS/opensips] dc6fa0: Fix is_ip_registered() to use IP-wise matching.

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Apr 6 12:10:55 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: dc6fa00e6c7d25f296d25b727c1074a5abefdf5d
      https://github.com/OpenSIPS/opensips/commit/dc6fa00e6c7d25f296d25b727c1074a5abefdf5d
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2018-04-06 (Fri, 06 Apr 2018)

  Changed paths:
    M modules/registrar/lookup.c

  Log Message:
  -----------
  Fix is_ip_registered() to use IP-wise matching.

Instead of doing string comp, better convert to ip_addr both IPs and do the comp as ip_addrs. This fixes the comp for IPv6, as IPv6 does not have a unique string representation.




More information about the Devel mailing list