Module: sip-router
Branch: master
Commit: 1e7b88508303cc84a045cc1fdd18a8e052888e9a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1e7b885…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Sat Jan 14 00:51:51 2012 +0200
modules_k/permissions: use of str2ip6() has to be ifdef'ed.
---
modules_k/permissions/address.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules_k/permissions/address.c b/modules_k/permissions/address.c
index bdc416c..c458e9e 100644
--- a/modules_k/permissions/address.c
+++ b/modules_k/permissions/address.c
@@ -62,8 +62,12 @@ static inline ip_addr_t *strtoipX(str *ips)
/* try to figure out INET class */
if(ips->s[0] == '[' || memchr(ips->s, ':', ips->len)!=NULL)
{
+#ifdef USE_IPV6
/* IPv6 */
return str2ip6(ips);
+#else
+ return 0;
+#endif
} else {
/* IPv4 */
return str2ip(ips);