Commit f6ab2a09 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

HTTP interface: accept IPv6 bind address

parent 22f8e743
...@@ -129,7 +129,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -129,7 +129,7 @@ static int Open( vlc_object_t *p_this )
psz_address = var_CreateGetNonEmptyString( p_intf, "http-host" ); psz_address = var_CreateGetNonEmptyString( p_intf, "http-host" );
if( psz_address != NULL ) if( psz_address != NULL )
{ {
char *psz_parser = strchr( psz_address, ':' ); char *psz_parser = strrchr( psz_address, ':' );
if( psz_parser ) if( psz_parser )
{ {
*psz_parser++ = '\0'; *psz_parser++ = '\0';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment