control interfaces are specified, to automatically increment the port.
*psz_crl = NULL;
int i_port = 0;
char *psz_src;
*psz_crl = NULL;
int i_port = 0;
char *psz_src;
psz_address = config_GetPsz( p_intf, "http-host" );
if( psz_address != NULL )
psz_address = config_GetPsz( p_intf, "http-host" );
if( psz_address != NULL )
+ /* Ugly hack to allow to run several HTTP servers on different ports. */
+ sprintf( psz_tmp, ":%d", i_port + 1 );
+ config_PutPsz( p_intf, "http-host", psz_tmp );
+
msg_Dbg( p_intf, "base %s:%d", psz_address, i_port );
p_sys->p_httpd_host = httpd_TLSHostNew( VLC_OBJECT(p_intf), psz_address,
msg_Dbg( p_intf, "base %s:%d", psz_address, i_port );
p_sys->p_httpd_host = httpd_TLSHostNew( VLC_OBJECT(p_intf), psz_address,