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

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Apr 11 05:34:50 EDT 2018


  Branch: refs/heads/2.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d981b65bab9c03eb2e055e6ac320aa34fd3196fe
      https://github.com/OpenSIPS/opensips/commit/d981b65bab9c03eb2e055e6ac320aa34fd3196fe
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2018-04-11 (Wed, 11 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.

(cherry picked from commit dc6fa00e6c7d25f296d25b727c1074a5abefdf5d)




More information about the Devel mailing list