[OpenSIPS-Devel] [OpenSIPS/opensips] a69f6d: Fixed checking IP addr against host/name

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Apr 5 08:45:13 EDT 2018


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

  Changed paths:
    M resolve.c

  Log Message:
  -----------
  Fixed checking IP addr against host/name

Instead of coverting an IP addr to string and to string matching, it is more sane to try to covert the host/name to IP addr (anyhow in 99% it will be an IP as it is taken from VIA hdr). The old string matching fails for IPv6 as the string representation of an IPv6 is not unique (like for IPv4) - you may have compact format for IPv6.

Reported by Pasan Meemaduma




More information about the Devel mailing list