]> git.sesse.net Git - vlc/commitdiff
HTTP interface: accept IPv6 bind address
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Mon, 4 Aug 2008 15:30:52 +0000 (18:30 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Mon, 4 Aug 2008 15:30:52 +0000 (18:30 +0300)
modules/control/http/http.c

index 1b1796a1c6b6a1915292e9129bd3a1508df39e9d..abb3eb52637394eb97e20123dadcae3df3f6b0a0 100644 (file)
@@ -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';