[OpenSIPS-Devel] [OpenSIPS/opensips] 6d576b: Fix is_ip_registered() to use IP-wise matching.
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Apr 11 05:35:16 EDT 2018
Branch: refs/heads/2.2
Home: https://github.com/OpenSIPS/opensips
Commit: 6d576b650e791bf2e889ec4ac4b4e5c7a9f2bf4b
https://github.com/OpenSIPS/opensips/commit/6d576b650e791bf2e889ec4ac4b4e5c7a9f2bf4b
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