From 9468e0224aaae7be5da09e9da135ced5ffea0f75 Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Thu, 19 Aug 2010 13:48:17 +0000 Subject: [PATCH] libUPnP does support IPV6 now. Patch submitted by Ronan Menard. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/branches/branch-1.6.x@560 119443c7-1b9e-41f8-b6fc-b9c35fce742c --- ChangeLog | 5 +++++ upnp/src/genlib/net/uri/uri.c | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9002b07..18cce0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,11 @@ Version 1.6.7 ******************************************************************************* +2010-08-19 Marcelo Jimenez + * libUPnP does support IPV6 now. + + Patch submitted by Ronan Menard. + 2010-08-19 Marcelo Jimenez * HTTP version equal to 1.0 should failed as required by the UPnP certification tool. Patch submitted by Ronan Menard. diff --git a/upnp/src/genlib/net/uri/uri.c b/upnp/src/genlib/net/uri/uri.c index 7761eb3..df9470d 100644 --- a/upnp/src/genlib/net/uri/uri.c +++ b/upnp/src/genlib/net/uri/uri.c @@ -447,13 +447,8 @@ int parse_hostport( else if( af == AF_INET6 ) { sai6->sin6_family = AF_INET6; sai6->sin6_port = htons(port); - /* - sai6->sin6_scope_id = gIF_INDEX; + sai6->sin6_scope_id = gIF_INDEX; ret = inet_pton(AF_INET6, srvname, &sai6->sin6_addr); - */ - /* libUPnP 1.6.x does not currently support IPV6. */ - assert(0); - ret = -1; } else { // IP address was set by the hostname (getaddrinfo). // Override port: