[asterisk-commits] may: branch may/ooh323_ipv6 r294122 - /team/may/ooh323_ipv6/addons/ooh323c/src/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Nov 7 13:13:05 CST 2010


Author: may
Date: Sun Nov  7 13:13:00 2010
New Revision: 294122

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=294122
Log:
fix determine of ipv4 connection - ip must be not ipv6 or not ipv4 to v6
mapped

Modified:
    team/may/ooh323_ipv6/addons/ooh323c/src/ooSocket.c

Modified: team/may/ooh323_ipv6/addons/ooh323c/src/ooSocket.c
URL: http://svnview.digium.com/svn/asterisk/team/may/ooh323_ipv6/addons/ooh323c/src/ooSocket.c?view=diff&rev=294122&r1=294121&r2=294122
==============================================================================
--- team/may/ooh323_ipv6/addons/ooh323c/src/ooSocket.c (original)
+++ team/may/ooh323_ipv6/addons/ooh323c/src/ooSocket.c Sun Nov  7 13:13:00 2010
@@ -342,7 +342,7 @@
    *port = ast_sockaddr_port(&addr);
 
    if (family) {
-	if (ast_sockaddr_is_ipv6(&addr))
+	if (ast_sockaddr_is_ipv6(&addr) && !ast_sockaddr_is_ipv4_mapped(&addr))
 		*family = 6;
 	else
 		*family = 4;




More information about the asterisk-commits mailing list