]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-2776: FS uses IPv6 under Proxy mode, and SIP Phone uses 6to4 tunneling IPv6 addres...
authorBrian West <brian@freeswitch.org>
Wed, 13 Oct 2010 14:17:31 +0000 (09:17 -0500)
committerBrian West <brian@freeswitch.org>
Wed, 13 Oct 2010 14:17:31 +0000 (09:17 -0500)
src/switch_utils.c

index b8879049609b7af82f03e4140b0cae014d5803ab..aa8f4139d224912fe3b326582630b8c3cfe6c041 100644 (file)
@@ -1515,9 +1515,9 @@ SWITCH_DECLARE(char *) get_addr6(char *buf, switch_size_t len, struct sockaddr_i
 
        if (sa) {
 #if defined(NTDDI_VERSION)
-                       switch_inet_ntop6((unsigned char*)sa, buf, len);
+                       switch_inet_ntop6((unsigned char*)sa->sin6_addr, buf, len);
 #else
-               inet_ntop(AF_INET6, sa, buf, len);
+               inet_ntop(AF_INET6, &(sa->sin6_addr), buf, len);
 #endif
        }