[vlc-devel] commit: HTTP interface: accept IPv6 bind address ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Aug 4 17:28:16 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Aug  4 18:30:52 2008 +0300| [f6ab2a0983acce5b4ad63eea689b07dd939a4469] | committer: Rémi Denis-Courmont 

HTTP interface: accept IPv6 bind address

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6ab2a0983acce5b4ad63eea689b07dd939a4469
---

 modules/control/http/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/control/http/http.c b/modules/control/http/http.c
index 1b1796a..abb3eb5 100644
--- a/modules/control/http/http.c
+++ b/modules/control/http/http.c
@@ -129,7 +129,7 @@ static int Open( vlc_object_t *p_this )
     psz_address = var_CreateGetNonEmptyString( p_intf, "http-host" );
     if( psz_address != NULL )
     {
-        char *psz_parser = strchr( psz_address, ':' );
+        char *psz_parser = strrchr( psz_address, ':' );
         if( psz_parser )
         {
             *psz_parser++ = '\0';




More information about the vlc-devel mailing list