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

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


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 8da18a45afa5d360c57beccee8142eafd1f05c49
      https://github.com/OpenSIPS/opensips/commit/8da18a45afa5d360c57beccee8142eafd1f05c49
  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