On 10/22/12 14:19, Juha Heinanen wrote:

> to me it makes sense to store addresses only in canonical format to
> database in order to make sure that address comparison can be made
> uniquely.

Using the string representation of an address for anything other than to
provide a human readable version of it is not a good idea. That's true
not only for IPv6 addresses: http://3239475010/ (doesn't work in IE IIRC).

If you want to compare addresses in code, use raw 128-bit addresses.

cheers

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to